Static methods

staticqueueWork(loop:Loop, ?request:ThreadPoolRequest, work:() ‑> Void, callback:(result:Result<NoData>) ‑> Void):Void

Schedules a function to be called by a thread in the thread pool.

work is the function that will be called in the thread pool. callback will be called by the loop after work completes, or immediately, in case there is an error scheduling work.

staticsetSize(size:Int, ?ifNotAlreadySet:Bool):Void

Sets thread pool size.

This function should be called as soon during process startup as possible.