Std.Concurrent.Future.within
1 declaration
fn
within: Int -> fn(Std.Concurrent.Cancel.Token) -> T -> Result[Option[T], Std.Concurrent.ConcurrentError]Run an action with a token that fires after millis; None when the deadline passed before the action was seen to finish. The token is asked before the action, so what work answers after noticing its deadline is never mistaken for a result. The action is waited for either way, so this answers once the work has stopped.
