const class concurrent::ActorPool
Controller for a group of actors which manages their execution using pooled thread resources.
Return true if this pool has been stopped or killed and all its actors have completed processing. If this pool was stopped then true indicates that all pending messages in the queues before the stop have been fully processed. If this pool was killed, then this method returns true once all actors have exited their thread. See
jointo block until done.
Return true if this pool has been stopped or killed. Once a a pool is stopped, new messages may not be delivered to any of its actors. A stopped pool is not necessarily done until all its actors have finished processing. Also see
Wait for this pool's actors to fully terminate or until the given timeout occurs. A null timeout blocks forever. If this method times out, then TimeoutErr is thrown. Throw Err if the pool is not stopped. Return this.
Perform an unorderly shutdown. Any pending messages which have not started processing are cancelled. Actors which are currently processing a message will be interrupted. See
stopto perform an orderly shutdown. If the pool has already been killed, then do nothing.
new make(|This|? f := null)
const Int maxThreads := 100
Max number of threads which are used by this pool for concurrent actor execution. This value must be at least one or greater.
const Str name := "ActorPool"
Name to use for the pool and associated threads.
Perform an orderly shutdown. Once stopped, no new messages may be sent to this pool's actors. However, any pending messages will be processed. Note that scheduled messages are not guaranteed to be processed, only those delivered with