Runs tasks asynchronously in an ordered manner.
For each put call, return a Promise which
resolves to the given delegate's return value.
The taskFun is evaluated in a separate thread.
Unlike threadAsync, at most one task will execute
at any given time (per AsyncQueue instance),
they will be executed in the order of the put calls,
and the promises will be resolved in the main thread
in the same order.
Runs tasks asynchronously in an ordered manner. For each put call, return a Promise which resolves to the given delegate's return value. The taskFun is evaluated in a separate thread. Unlike threadAsync, at most one task will execute at any given time (per AsyncQueue instance), they will be executed in the order of the put calls, and the promises will be resolved in the main thread in the same order.