Promises[A: Any #share]

primitive val Promises[A: Any #share]

Constructors

create

new val create()
: Promises[A] val^

Returns


Public Functions

join

Create a promise that is fulfilled when all promises in the given sequence are fulfilled. If any promise in the sequence is rejected then the new promise is also rejected. The order that values appear in the final array is based on when each promise is fulfilled and not the order that they are given.

fun box join(
  ps: Iterator[Promise[A] tag] ref)
: Promise[Array[A] val] tag

Parameters

Returns


eq

fun box eq(
  that: Promises[A] val)
: Bool val

Parameters

Returns


ne

fun box ne(
  that: Promises[A] val)
: Bool val

Parameters

Returns