Futures

com.malliina.concurrent.Futures$
See theFutures companion trait
object Futures extends Futures

Attributes

Companion:
trait
Graph
Supertypes
trait Futures
class Object
trait Matchable
class Any
Self type
Futures.type

Members list

Concise view

Value members

Inherited methods

def before[T, TO](other: Future[TO])(f: Future[T])(implicit ec: ExecutionContext): Future[T]

Attributes

Inherited from:
Futures
def promisedFuture[T](keepPromise: Promise[T] => Unit): Future[T]

Constructs a future that is completed according to keepPromise. This pattern can be used to convert callback-based APIs to Future-based ones. For example, parameter keepPromise can call some callback-based API, and the callback implementation can complete the supplied promise.

Constructs a future that is completed according to keepPromise. This pattern can be used to convert callback-based APIs to Future-based ones. For example, parameter keepPromise can call some callback-based API, and the callback implementation can complete the supplied promise.

Attributes

T

type of value to complete promise with

keepPromise

code that completes the promise

Returns:

the future completion value

Inherited from:
Futures