X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fpool.ts;h=f96e5c0cbff3ed84afe5d06c6ac8f2097539ba9f;hb=3832ad95c98b136ef703a29685fedebe4a5e3ba2;hp=55e15792b01f23a4305e42f3d4fe4689e7dbaf05;hpb=729c563db85562dd7d0f7733b1a3e2d98467134b;p=poolifier.git diff --git a/src/pools/pool.ts b/src/pools/pool.ts index 55e15792..f96e5c0c 100644 --- a/src/pools/pool.ts +++ b/src/pools/pool.ts @@ -5,10 +5,6 @@ * @template Response Type of response of execution. */ export interface IPool { - /** - * Shut down every current worker in this pool. - */ - destroy(): Promise /** * Perform the task specified in the constructor with the data parameter. * @@ -16,4 +12,8 @@ export interface IPool { * @returns Promise that will be resolved when the task is successfully completed. */ execute(data: Data): Promise + /** + * Shut down every current worker in this pool. + */ + destroy(): Promise }