Namespace: webdriver.promiseView Sourceclass MicroTask_<THIS>Wraps a function to execute as a cancellable micro task.new MicroTask_(fn, opt_scope)Parametersfnfunction(): ?The function to run as a micro task.opt_scopeTHIS=The scope to run the function in.Instance Methodscancel()code ยปCancels the execution of this task. Note: this will not prevent the task timer from firing, just the invocation of the wrapped function.