lastTask, runAsTask
Commit: af8ecd0
.lastTask
is used to get the last task to execute.
queues.lastTask() //-> {fn, args, context, meta}
.runAsTask(fn, makeReasonLog)
is used to run a function such that it can be logged in logStack()
.
var task = queues.runAsTask(function myTask(){
queues.logStack()
}, function(){
return ["myTask called on", this, "with",arguments];
});