(
outcome
(
α
, 
{ 
void
 
timeout
 }
)
)
timeout (
(
α
)
 
_
, 
int
 
_)
Execute the function and return the result if the computation has finished before the timeout.Note: this implementation is server-only for the moment
f
The function to execute. If this function takes too long to return, it returns a  failure={timeout} .
timeout_ms
The amount of time to wait for the function to return before calling the fallback.
returns
The result of the function or a failure if it takes too long to return.

Comments

The browser you use is not supported by this application, probably because it lacks some critical features.
For a better experience, please consider using this application with a supported browser.