josdejong/workerpool

Throw a WorkerError instead of generic Error

Open

#274 opened on Apr 5, 2021

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

Repository metrics

Stars
 (2,297 stars)
PR merge metrics
 (PR metrics pending)

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