workerLoop: sleigh Auxiliary Function
Description
Worker waits and listens for tasks in the sleigh workspace.
Worker then works on the retrieved
tasks and return results back to the sleigh workspace.
This loop ends when stopSleigh
is invoked.
Details
This function is invoked by launch
function. It is not meant
to be called directly by clients.