Enqueue a function for execution.
Callbacks passed to execute()
are always executed in order, and never
started until the prior callbacks have executed.
The next completion callback
a Thenable that will resolve with the return value/exception of the enqueued function.
Generated using TypeDoc
Provides serial execution for asynchronous code. Here are the semantics:
Strand
holds an internal execution queue of completion callbacks. Each call toexecute
will push to the queue. When a callback in the queue finishes with either an exception or a regular return, the next callback in the queue will be dispatched. Callbacks are not executed until all prior callbacks have run to completion.