lua.wire.tasks
wire.tasks(name,count,code)
wire.tasks(name,0)
Start or halt the named tasks, we plan to be running count number of named tasks after calling this.
name is the type of task, eg "http". A fifo of that name will be created when creating tasks ( if one does not already exist ) for sending mwmo work request to and all tasks created will have their names prefixed with this name.
count is the number of tasks we want, call with 0 and we will halt all named tasks.
code is the string of lua code to run in each task, eg for http tasks it would be "require('wiretasks').http_code()" to run the wire.http_code function in each task. If count zero, this may be skipped.
We will try and reuse old tasks, if stopping and starting, but really all you should need to do is call at startup and then you are good to go until the process shuts down.