| Class | NewRelic::Agent::WorkerLoop |
| In: |
lib/new_relic/agent/worker_loop.rb
|
| Parent: | Object |
A worker loop executes a set of registered tasks on a single thread. A task is a proc or block with a specified call period in seconds.
| iterations | [R] | |
| period | [RW] | |
| propagate_errors | [RW] |
Optional argument :duration (in seconds) for how long the worker loop runs or :limit (integer) for max number of iterations
Run infinitely, calling the registered tasks at their specified call periods. The caller is responsible for creating the thread that runs this worker loop. This will run the task immediately.