object FutureCompanionOps
- Alphabetic
- By Inheritance
- FutureCompanionOps
- 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
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
eval[T](expr: ⇒ T): commons.Future[T]
Evaluates an expression and wraps its value into a
Future
.Evaluates an expression and wraps its value into a
Future
. FailedFuture
is returned if expression evaluation throws an exception. This is very similar toFuture.apply
but evaluates the argument immediately, without dispatching it to someExecutionContext
. -
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
sequenceCompleted[A, M[X] <: TraversableOnce[X]](in: M[commons.Future[A]])(implicit cbf: CanBuildFrom[M[commons.Future[A]], A, M[A]], executor: commons.ExecutionContext): commons.Future[M[A]]
Different version of
Future.sequence
.Different version of
Future.sequence
. Transforms aTraversableOnce[Future[A]]
into aFuture[TraversableOnce[A]
, which only completes after allin
Future
s are completed.- A
the type of the value inside the Futures
- M
the type of the
TraversableOnce
of Futures- in
the
TraversableOnce
of Futures which will be sequenced- returns
the
Future
of theTraversableOnce
of results
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
traverseCompleted[A, B, M[X] <: TraversableOnce[X]](in: M[A])(fn: (A) ⇒ commons.Future[B])(implicit cbf: CanBuildFrom[M[A], B, M[B]], executor: commons.ExecutionContext): commons.Future[M[B]]
Different version of
Future.traverse
.Different version of
Future.traverse
. Transforms aTraversableOnce[A]
into aFuture[TraversableOnce[B]]
, which only completes after allin
Future
s are completed, using the provided functionA => Future[B]
. This is useful for performing a parallel map. For example, to apply a function to all items of a list- A
the type of the value inside the Futures in the
TraversableOnce
- B
the type of the value of the returned
Future
- M
the type of the
TraversableOnce
of Futures- in
the
TraversableOnce
of Futures which will be sequenced- fn
the function to apply to the
TraversableOnce
of Futures to produce the results- returns
the
Future
of theTraversableOnce
of results
-
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
- @native() @throws( ... )