Results for “Std.Concurrent.Cancel.Token”
17 matching declarations
Use module:Std.List, kind:fn, or is:exact. Put a Pudu type after ::.
- Std.Concurrent.Cancel.Token
A request to stop, which work checks between steps.
- Std.Concurrent.Cancel.token
Std.Concurrent.Cancel.TokenA token that fires only when cancelled.
- Std.Concurrent.Cancel.cancel
&Std.Concurrent.Cancel.Token -> Str -> Result[(), Std.Sync.SyncError]Ask the work holding this token, and every child of it, to stop.
- Std.Concurrent.Cancel.check
&Std.Concurrent.Cancel.Token -> Result[(), Std.Concurrent.Cancel.Reason]Okwhile the token has not fired, so work can stop with?. - Std.Concurrent.Cancel.child
&Std.Concurrent.Cancel.Token -> Std.Concurrent.Cancel.TokenA token that fires when its parent does.
- Std.Concurrent.Cancel.childExpiring
&Std.Concurrent.Cancel.Token -> Int -> Std.Concurrent.Cancel.TokenA child that also fires
millisfrom now, or at its parent's deadline if - Std.Concurrent.Cancel.expiring
Int -> Std.Concurrent.Cancel.TokenA token that fires by itself
millisfrom now. - Std.Concurrent.Cancel.pause
&Std.Concurrent.Cancel.Token -> Int -> Result[(), Std.Concurrent.Cancel.Reason]Sleep for
millis, or until the token fires, whichever comes first. - Std.Concurrent.Cancel.reason
&Std.Concurrent.Cancel.Token -> Option[Std.Concurrent.Cancel.Reason]Why the token fired, or
Nonewhile it has not. An ancestor's reason is - Std.Concurrent.Cancel.remaining
&Std.Concurrent.Cancel.Token -> Option[Int]Milliseconds left before the deadline, never below zero, or
Nonefor a - Std.Concurrent.Cancel.stopped
&Std.Concurrent.Cancel.Token -> BoolWhether the token has fired.
- Std.Concurrent.Future.firstSuccess
&Std.Concurrent.Cancel.Token -> &Array[fn(Std.Concurrent.Cancel.Token) -> T] -> Result[T, Std.Concurrent.ConcurrentError]Run every action and answer the first to succeed; when none does, the
- Std.Concurrent.Future.race
&Std.Concurrent.Cancel.Token -> &Array[fn(Std.Concurrent.Cancel.Token) -> T] -> Result[T, Std.Concurrent.ConcurrentError]Run every action and answer the first to settle, value or failure. The
- 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.within
Int -> fn(Std.Concurrent.Cancel.Token) -> T -> Result[Option[T], Std.Concurrent.ConcurrentError]Run an action with a token that fires after
millis;Nonewhen the - Std.Concurrent.Retry.runCancellable
&Std.Concurrent.Retry.Policy -> &Std.Concurrent.Cancel.Token -> fn(E) -> Bool -> fn(Int) -> Result[T, E] -> Result[T, Std.Concurrent.Retry.RetryError[E]]runWhen, stopping when the token fires: before each attempt and during - Std.Concurrent.Scope.all
&Std.Concurrent.Cancel.Token -> &Array[fn(Std.Concurrent.Cancel.Token) -> Result[T, E]] -> Result[Array[T], Std.Concurrent.Scope.ScopeError[E]]Run every action on its own thread with one child token of
parent, and
