Class: TaskItem
Implements
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new TaskItem(task?
): TaskItem
Parameters
Name | Type |
---|---|
task? | IFunction |
Returns
Defined in
leafer/packages/task/src/TaskItem.ts:23
Properties
id
• Readonly
id: number
Defined in
leafer/packages/task/src/TaskItem.ts:11
parent
• parent: TaskProcessor
Implementation of
Defined in
leafer/packages/task/src/TaskItem.ts:13
parallel
• parallel: boolean
= true
Implementation of
Defined in
leafer/packages/task/src/TaskItem.ts:15
time
• time: number
= 1
Implementation of
Defined in
leafer/packages/task/src/TaskItem.ts:16
isComplete
• isComplete: boolean
Implementation of
Defined in
leafer/packages/task/src/TaskItem.ts:18
isCancel
• isCancel: boolean
Implementation of
Defined in
leafer/packages/task/src/TaskItem.ts:19
task
• Private
task: IFunction
Defined in
leafer/packages/task/src/TaskItem.ts:21
Methods
run
▸ run(): Promise
<void
>
Returns
Promise
<void
>
Implementation of
Defined in
leafer/packages/task/src/TaskItem.ts:28
complete
▸ complete(): void
Returns
void
Implementation of
Defined in
leafer/packages/task/src/TaskItem.ts:36
cancel
▸ cancel(): void
Returns
void