Available on macro, java, python, neko, hl, cpp
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 previousely submitted tasks will be executed, but no new tasks will be accepted.
Multiple calls to this method have no effect.