object CompanionFutureOps
- Alphabetic
- By Inheritance
- CompanionFutureOps
- 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
- def asIO[T](f: ⇒ future.Future[T])(implicit ec: future.ExecutionContext): IO[T]
-
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 fail[T](a: Anomaly): future.Future[T]
-
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
pure[T](t: T): future.Future[T]
- t
Never, ever use a side-effecting computation when defining the value of this parameter
-
def
serialize[A, B, C[X] <: TraversableOnce[X]](col: C[A])(fn: (A) ⇒ future.Future[B])(implicit cbf: CanBuildFrom[C[A], B, C[B]], ec: future.ExecutionContext): future.Future[C[B]]
Syntactically inspired from Future.traverse, but it differs semantically insofar as this method does not attempt to run any futures in parallel.
Syntactically inspired from Future.traverse, but it differs semantically insofar as this method does not attempt to run any futures in parallel. "M" stands for "monadic", as opposed to "applicative" which is the foundation for the formal definition of "traverse" (even though in Scala it is by accident-ish)
For the vast majority of cases you should prefer this method over Future.sequence and Future.traverse, since even small collections can easily wind up queuing so many Futures that you blow your execution context.
Usage:
import busymachines.future._ val patches: Seq[Patch] = //... //this ensures that no two changes will be applied in parallel. val allPatches: Future[Seq[Patch]] = Future.serialize(patches){ patch: Patch => Future { //apply patch } } //... and so on, and so on!
-
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
- @native() @throws( ... )