Available on cpp, macro, jvm, hl, neko, python
A thread pool interface.
read onlyisShutdown:Bool
Indicates if shutdown method of this pool has been called.
shutdown
read onlythreadsCount:Int
Amount of alive threads in this pool.
run(task:() ‑> Void):Void
Submit a task to run in a thread.
Throws an exception if the pool is shut down.
shutdown():Void
Initiates a shutdown. All previously submitted tasks will be executed, but no new tasks will be accepted.
Multiple calls to this method have no effect.