The AsyncFunctionQueue allows you to queue up a series of functions to run.
The AsyncUniqueFunctionQueue allows you to queue up a series of functions to run.
The AsyncUniqueFunctionQueue allows you to queue up a series of functions to run.
The functions is run one at a time (sequentially) and will not block the current thread (asynchronously).
Every function has an associated key which must be unique for the queue, or else the function can't be added.
This is useful behavior when you expect several equivalent calls in a short time, and only want to process the first one.
type of the key to be used to check for equality
The
AsyncFunctionQueueallows you to queue up a series of functions to run. The functions is run one at a time (sequentially) and will not block the current thread (asynchronously).