Results for “Std.Concurrent.Future.Future”
12 matching declarations
Use module:Std.List, kind:fn, or is:exact. Put a Pudu type after ::.
- Std.Concurrent.Future.Future
A value another thread is producing.
- Std.Concurrent.Future.fail
&Std.Concurrent.Future.Future[T] -> Std.Concurrent.ConcurrentError -> BoolSettle a future with a failure. Answers whether this call settled it.
- Std.Concurrent.Future.fulfil
&Std.Concurrent.Future.Future[T] -> T -> BoolSettle a future with a value. Answers whether this call settled it: a
- Std.Concurrent.Future.isDone
&Std.Concurrent.Future.Future[T] -> BoolWhether the future has settled.
- Std.Concurrent.Future.promise
Std.Concurrent.Future.Future[T]A future nothing settles yet;
fulfilorfailsettles it. - Std.Concurrent.Future.settleAll
&Array[Std.Concurrent.Future.Future[T]] -> Array[Result[T, Std.Concurrent.ConcurrentError]]Every future's outcome, in input order, once all have settled.
- Std.Concurrent.Future.start
fn() -> T -> Result[Std.Concurrent.Future.Future[T], Std.Concurrent.ConcurrentError]Run an action on a thread and answer the future of its value.
- Std.Concurrent.Future.wait
&Std.Concurrent.Future.Future[T] -> Result[T, Std.Concurrent.ConcurrentError]Wait until the future settles and answer its outcome.
- Std.Concurrent.Future.waitAll
&Array[Std.Concurrent.Future.Future[T]] -> Result[Array[T], Std.Concurrent.ConcurrentError]Wait for every future and answer their values in order, or the first
- Std.Concurrent.Future.waitUntil
&Std.Concurrent.Future.Future[T] -> &Std.Concurrent.Cancel.Token -> Result[Option[T], Std.Concurrent.ConcurrentError]Wait until the future settles or the token fires;
Nonefor the token. - Std.Concurrent.Future.waitWithin
&Std.Concurrent.Future.Future[T] -> Int -> Result[Option[T], Std.Concurrent.ConcurrentError]Wait at most
millis;Nonewhen the future had not settled by then. - Std.Concurrent.Pool.submitFor
&Std.Concurrent.Pool.Pool -> fn() -> T -> Result[Std.Concurrent.Future.Future[T], Std.Concurrent.ConcurrentError]Queue a job and answer the future of its value; a crash settles the
