Async and Futures

Futures, executors, threads and locking.

Futures, executors, threads and locking. 28 entries. This page is generated from the MatchBox source; see the function reference index for how to read the tables and what each gate means.

FunctionFormsGateNotes
asyncAllApplyasyncAllApply( ... )alwaysApplies a function to each element in parallel and returns the results in order.
executorDeleteexecutorDelete( ... )always
executorGetexecutorGet( ... )always
executorHasexecutorHas( ... )always
executorNewexecutorNew( ... )always
futureCompleteExceptionallyfutureCompleteExceptionally( ... ), future.completeExceptionally( ... )always
futureCompleteOnTimeoutfutureCompleteOnTimeout( ... ), future.completeOnTimeout( ... )always
futureExceptionallyfutureExceptionally( ... ), future.exceptionally( ... )alwaysHandles an error in the future with a function.
futureGetAsAttemptfutureGetAsAttempt( ... ), future.getAsAttempt( ... )always
futureGetOrDefaultfutureGetOrDefault( ... ), future.getOrDefault( ... )always
futureIsCompletedExceptionallyfutureIsCompletedExceptionally( ... ), future.isCompletedExceptionally( ... )always
futureJoinOrDefaultfutureJoinOrDefault( ... ), future.joinOrDefault( ... )always
futureNewfutureNew( ... )alwaysCreates a future from a function.
futureOnErrorfutureOnError( ... ), future.onError( ... )always
futureOrTimeoutfutureOrTimeout( ... ), future.orTimeout( ... )always
futureThenfutureThen( ... ), future.then( ... )alwaysChains a function onto a future's result.
isInThreadisInThread( ... )always
isThreadAliveisThreadAlive( ... )always
isThreadInterruptedisThreadInterrupted( ... )always
locklock( ... )always
runAsyncrunAsync( ... )alwaysRuns a function on another thread and returns a future.
runThreadInContextrunThreadInContext( ... )always
threadInterruptthreadInterrupt( ... )always
threadJointhreadJoin( ... )always
threadNewthreadNew( ... )always
threadTerminatethreadTerminate( ... )always
yieldyield( ... )always
future.getfuture.get( ... )alwaysHandled inside the VM; there is no global function with this name.
Edit this page Download Markdown Last updated Oct 27, 2026, 1:45:34 PM Report an issue