Skip to content

Interface TaskContext

🔧 Methods

fork optional

ts
fork(task: Task<any>): number

Parameters

  • task: Task<any>

Return Type

  • number

Defined in: packages/task/index.ts:58

onCancelled optional

ts
onCancelled(task: Task<any>): void

Parameters

  • task: Task<any>

Return Type

  • void

Defined in: packages/task/index.ts:65

onFailed optional

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 optional

ts
onPaused(task: Task<any>): void

Parameters

  • task: Task<any>

Return Type

  • void

Defined in: packages/task/index.ts:63

onResumed optional

ts
onResumed(task: Task<any>): void

Parameters

  • task: Task<any>

Return Type

  • void

Defined in: packages/task/index.ts:64

onStart optional

ts
onStart(task: Task<any>): void

Parameters

  • task: Task<any>

Return Type

  • void

Defined in: packages/task/index.ts:59

onSucceed optional

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 optional

ts
onUpdate(task: Task<any>, chunkSize: number): void

Parameters

  • task: Task<any>
  • chunkSize: number

Return Type

  • void

Defined in: packages/task/index.ts:60