object WorkersOps
- Alphabetic
- By Inheritance
- WorkersOps
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
flatMapWorkers[A, B, M[+AA] <: TraversableOnce[AA]](workerCount: Int)(self: M[A], f: (A) ⇒ Future[TraversableOnce[B]])(implicit cbf: CanBuildFrom[Nothing, B, M[B]], ec: ExecutionContext): Future[M[B]]
Transform and flatten Futures concurrently, limiting concurrency to at most WorkerConfig.workerCount workers
Transform and flatten Futures concurrently, limiting concurrency to at most WorkerConfig.workerCount workers
- returns
a Future of M[B] that completes once all Futures have been transformed
-
def
foreachWorkers[A, U, M[+AA] <: TraversableOnce[AA]](workerCount: Int)(self: M[A], f: (A) ⇒ Future[U])(implicit ec: ExecutionContext): Future[Unit]
Traverse Futures concurrently, limiting concurrency to at most WorkerConfig.workerCount workers
Traverse Futures concurrently, limiting concurrency to at most WorkerConfig.workerCount workers
- returns
a Future of M[B] that completes once all Futures have been transformed
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
mapWorkers[A, B, M[+AA] <: TraversableOnce[AA]](workerCount: Int)(self: M[A], f: (A) ⇒ Future[B])(implicit cbf: CanBuildFrom[Nothing, B, M[B]], ec: ExecutionContext): Future[M[B]]
Transform Futures concurrently, limiting concurrency to at most WorkerConfig.workerCount workers
Transform Futures concurrently, limiting concurrency to at most WorkerConfig.workerCount workers
- returns
a Future of M[B] that completes once all Futures have been transformed
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
runWorkers[A, B](workerCount: Int)(xa: TraversableOnce[A], f: (A) ⇒ Future[B], g: (B) ⇒ Future[Unit])(implicit ec: ExecutionContext): Future[Unit]
Using the collection members xa, concurrently execute a processing function f, outputting the result of f to the function g.
Using the collection members xa, concurrently execute a processing function f, outputting the result of f to the function g. Concurrency is limited to the number of workers specified in WorkersConfig. Any exception that occurs during a worker's processing will cause a AsyncParThrowable to be immediately returned. Any other exceptions from workers that have yet to complete can be retrieved from AsyncParThrowable.
- A
the type processed
- B
the output type
- workerCount
specifies the number of workers
- xa
the collection
- f
the processing function
- g
the output function
- returns
a Future that completes once all workers have completed.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )