X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fworker%2Futils.ts;h=e023cc37588cc8d85b86400872d0f4ee3a2ef234;hb=00e1bdeb5c50b0eede8fe2f72d47bf8992e4aede;hp=f88ead7dcbcd238cb990ebaed48e23f625201c4c;hpb=9a38f99e676160c0bc7d28fe88f27b01fa31b5a1;p=poolifier.git diff --git a/src/worker/utils.ts b/src/worker/utils.ts index f88ead7d..e023cc37 100644 --- a/src/worker/utils.ts +++ b/src/worker/utils.ts @@ -28,9 +28,6 @@ export const checkValidWorkerOptions = (opts: WorkerOptions): void => { if (opts?.killHandler != null && typeof opts.killHandler !== 'function') { throw new TypeError('killHandler option is not a function') } - if (opts?.async != null) { - throw new Error('async option is deprecated') - } } export const checkValidTaskFunctionEntry = (