UNPKG

async-multi-worker

Version:
11 lines (8 loc) 222 B
'use strict'; class TimeoutError extends Error { constructor(timeoutMs) { super(`Worker call timed out after ${timeoutMs}ms`); this.name = "TimeoutError"; } } exports.TimeoutError = TimeoutError;