Constructs a promise which will contain value "message" after the given duration elapses.
Constructs a promise which will contain value "message" after the given duration elapses. This is useful only when used in conjunction with other Promises
message to be displayed
duration for the scheduled promise
a scheduled promise
Constructs a promise which will contain value "message" after the given duration elapses.
Constructs a promise which will contain value "message" after the given duration elapses. This is useful only when used in conjunction with other Promises
message to be displayed
duration for the scheduled promise
a scheduled promise
Constructs a new redeemable Promise which has not been redeemed yet.
Constructs a new redeemable Promise which has not been redeemed yet.
(Since version 2.2) Use scala.concurrent.Promise() instead.
Synonym for PurePromise.
Synonym for PurePromise.apply
(Since version 2.2) Use scala.concurrent.Future.successful() or scala.concurrent.Promise.complete(Try(...)) instead.
Converts a traversable type M containing a Promise, into a Promise containing type M.
Converts a traversable type M containing a Promise, into a Promise containing type M. For example you could convert a List of Promise into a Promise of a List.
the traversable that's being converted into a promise
a Promise that's the result of the transformation
(Since version 2.2) Use scala.concurrent.Future.sequence() instead.
Converts an optional promise into a promise containing an optional value.
Converts an optional promise into a promise containing an optional value. i.e. if the original option is None, you get a Future[Option[A]] with a value of None, if the original option is Some, you get a Future[Option[A]] containing Some(A). Called "sequence" because its more general form (see below) can operate on multi-element collections such as lists.
(Since version 2.2) Provide the mapping as required.
Converts an either containing a Promise as its Right into a Promise of an Either with a plain (not-in-a-promise) value on the Right.
Converts an either containing a Promise as its Right into a Promise of an Either with a plain (not-in-a-promise) value on the Right.
a promise with Either[A,B]
(Since version 2.2) Provide the mapping as required.
Converts an either containing a Promise on both Left and Right into a Promise of an Either with plain (not-in-a-promise) values.
Converts an either containing a Promise on both Left and Right into a Promise of an Either with plain (not-in-a-promise) values.
(Since version 2.2) Provide the mapping as required.
(Since version 2.2) Provide the mapping as required.
Constructs a promise which will contain value "message" after the given duration elapses.
Constructs a promise which will contain value "message" after the given duration elapses. This is useful only when used in conjunction with other Promises.
a timer promise
(Since version 2.2) Use Promise.timeout(A, Duration) instead.
useful helper methods to create and compose Promises