Component v0.2.3 Component.Strategy.Pooled.Scheduler View Source

This is the runtime support for pooled workers.

Each original module that specifies a pool arg will be associated with its own pool, and that pool is run by the scheduler code below.

Link to this section Summary

Functions

Claim a worker from the pool

Run an instance of our pool worker with the given command. The optional third parameter is a timeout. If a float, the value is in seconds; otherwise it's an integer number of milliseconds

Link to this section Functions

Claim a worker from the pool.

Link to this function

run(pool, what_to_run, timeout) View Source

Run an instance of our pool worker with the given command. The optional third parameter is a timeout. If a float, the value is in seconds; otherwise it's an integer number of milliseconds.

This is called by the delegating function in the code generated by Component.Strategy.Pooled—it isn't called directly by the client.