UNPKG

@mcjxy/task-pool

Version:

Easy way to manage a pool of workers, support cluster mode(run tasks in different process), thread mode(run tasks in different thread) and normal mode(run tasks in current thread)!

7 lines (5 loc) 113 B
'use strict'; module.exports = { MSG_RUN_ERROR: 'MSG_RUN_ERROR', MSG_RUN_RESULT: 'MSG_RUN_RESULT', };