josdejong/workerpool

Throw a WorkerError instead of generic Error

Open

#274 opened on Apr 5, 2021

 (1 comment) (0 reactions) (0 assignees)JavaScript (164 forks)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (2,307 stars)
PR merge metrics
 (Avg merge 21d 16h) (3 merged PRs in 30d)

Description

When I call the terminate () function, the worker pool throws an error: "Worker terminated". Please create a class named WorkerError and use it for error messages. Since this is difficult to debug.

image

Contributor guide