UNPKG

reactronic

Version:

Reactronic - Transactional Reactive State Management

9 lines (8 loc) 243 B
export type Worker = { readonly id: number; readonly hint: string; readonly isCanceled: boolean; readonly isFinished: boolean; cancel(error: Error, restartAfter?: Worker | null): void; whenFinished(): Promise<void>; };