| 1 | import Instance from "./instance"; |
| 2 | |
| 3 | export interface ILifeCycleTask { |
| 4 | name: string; // task name |
| 5 | status: number; // Running status, the default is 0, the task manager will automatically change |
| 6 | start: (instance: Instance) => Promise<void>; |
| 7 | stop: (instance: Instance) => Promise<void>; |
| 8 | } |
| 9 | |
| 10 | export class LifeCycleTaskManager { |
| 11 | // list of life cycle tasks |
nothing calls this directly
no outgoing calls
no test coverage detected