lastTask
Return last task to be flushed.
queues.lastTask()
import {queues} from "can";
queues.lastTask() //-> {fn, args, context, meta}
Returns
{Object}
:
Returns a task object that contains:
fn
- The function runargs
- The arguments passed to the functioncontext
- The context (this
) the function was called onmeta
- Additional information about the task