Interface TaskContext
🔧 Methods
fork
ts
fork(task: Task<any>): number
Parameters
- task:
Task<any>
Return Type
number
Defined in: packages/task/index.ts:58
onCancelled
ts
onCancelled(task: Task<any>): void
Parameters
- task:
Task<any>
Return Type
void
Defined in: packages/task/index.ts:65
onFailed
ts
onFailed(task: Task<any>, error: any): void
Parameters
- task:
Task<any>
- error:
any
Return Type
void
Defined in: packages/task/index.ts:61
onPaused
ts
onPaused(task: Task<any>): void
Parameters
- task:
Task<any>
Return Type
void
Defined in: packages/task/index.ts:63
onResumed
ts
onResumed(task: Task<any>): void
Parameters
- task:
Task<any>
Return Type
void
Defined in: packages/task/index.ts:64
onStart
ts
onStart(task: Task<any>): void
Parameters
- task:
Task<any>
Return Type
void
Defined in: packages/task/index.ts:59
onSucceed
ts
onSucceed(task: Task<any>, result: any): void
Parameters
- task:
Task<any>
- result:
any
Return Type
void
Defined in: packages/task/index.ts:62
onUpdate
ts
onUpdate(task: Task<any>, chunkSize: number): void
Parameters
- task:
Task<any>
- chunkSize:
number
Return Type
void
Defined in: packages/task/index.ts:60