Skip to content

lastTask, runAsTask

Compare
Choose a tag to compare
@justinbmeyer justinbmeyer released this 31 Oct 02:13
· 23 commits to master since this release

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];
});