Skip to main content

registerInteruptableProcess

@webda/core


Function: registerInteruptableProcess()

registerInteruptableProcess(process): void

Defined in: packages/core/src/core/instancestorage.ts:102

Register a cancelable process so it can be interrupted on shutdown

Parameters​

process​

the process to manage

cancel​

() => Promise<void>

the cancel callback

Returns​

void