10 * Basic class that implement the minimum required for a pool worker.
12 export abstract class AbstractPoolWorker
implements IPoolWorker
{
14 abstract on (event
: 'message', handler
: MessageHandler
<this>): void
16 abstract on (event
: 'error', handler
: ErrorHandler
<this>): void
18 abstract on (event
: 'online', handler
: OnlineHandler
<this>): void
20 abstract on (event
: 'exit', handler
: ExitHandler
<this>): void
22 abstract once (event
: 'exit', handler
: ExitHandler
<this>): void