Interface: ITaskProcessor
Implemented by
Table of contents
Properties
Methods
Properties
config
• config: ITaskProcessorConfig
Defined in
leafer/packages/interface/src/task/ITaskProcessor.ts:11
running
• running: boolean
Defined in
leafer/packages/interface/src/task/ITaskProcessor.ts:12
isComplete
• isComplete: boolean
Defined in
leafer/packages/interface/src/task/ITaskProcessor.ts:13
percent
• percent: number
Defined in
leafer/packages/interface/src/task/ITaskProcessor.ts:14
total
• total: number
Defined in
leafer/packages/interface/src/task/ITaskProcessor.ts:15
index
• index: number
Defined in
leafer/packages/interface/src/task/ITaskProcessor.ts:16
finishedIndex
• finishedIndex: number
Defined in
leafer/packages/interface/src/task/ITaskProcessor.ts:17
remain
• remain: number
Defined in
leafer/packages/interface/src/task/ITaskProcessor.ts:18
Methods
start
▸ start(): void
Returns
void
Defined in
leafer/packages/interface/src/task/ITaskProcessor.ts:19
pause
▸ pause(): void
Returns
void
Defined in
leafer/packages/interface/src/task/ITaskProcessor.ts:20
resume
▸ resume(): void
Returns
void
Defined in
leafer/packages/interface/src/task/ITaskProcessor.ts:21
skip
▸ skip(): void
Returns
void
Defined in
leafer/packages/interface/src/task/ITaskProcessor.ts:22
stop
▸ stop(): void
Returns
void
Defined in
leafer/packages/interface/src/task/ITaskProcessor.ts:23
add
▸ add(taskCallback
, options?
): ITaskItem
Parameters
Name | Type |
---|---|
taskCallback | IFunction |
options? | number | ITaskOptions |
Returns
Defined in
leafer/packages/interface/src/task/ITaskProcessor.ts:24
destroy
▸ destroy(): void
Returns
void