class MicroTask_<THIS>

Wraps a function to execute as a cancellable micro task.

new MicroTask_(fn, opt_scope)

Parameters
fnfunction(): ?

The function to run as a micro task.

opt_scopeTHIS=

The scope to run the function in.

Instance Methods

cancel()code ยป

Cancels the execution of this task. Note: this will not prevent the task timer from firing, just the invocation of the wrapped function.