Function OnDemandWorkerFunc.waitIdle
Wait for task queue to empty.
This function waits until the worker fiber exits. This means that not only has the current
Note
Unless independently throttling requests, there is no guarantee that this condition will ever happen.