threadpool-js samples
Asynchronous counting
Error handling