new Task(fn [, opts])
Parameters:
Name | Type | Argument | Default | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fn |
function | |||||||||||||||||||||||
opts |
Object |
<optional> |
{} |
Properties
|
Members
-
isAborted :Boolean
-
Type:
- Boolean
-
priority :String
-
Type:
- String
-
promise :Promise
-
Type:
- Promise
Methods
-
abort()
-
Abort the task.
-
<async> run()
-
Run the task.