Interface: Task<Type, Data, Options>
A Task
represents work to be performed asynchronously.
Tasks can be identified with a type
and id
, although only type
is
required. Processors may use id
for tracking purposes.
A task's optional data
can be applied during processing, which may be
further influenced by its options
.
Type parameters​
Name | Type |
---|---|
Type | string |
Data | unknown |
Options | unknown |
Properties​
data​
• Optional
data: Data
Defined in​
packages/@orbit/core/src/task.ts:13
id​
• Optional
id: string
Defined in​
packages/@orbit/core/src/task.ts:12
options​
• Optional
options: Options
Defined in​
packages/@orbit/core/src/task.ts:14
type​
• type: Type