Skip to content

Commit ced8496

Browse files
committed
Add documentation
1 parent c159082 commit ced8496

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/concurrent/executor/fixed_thread_pool.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ module Concurrent
115115
# Thread pools support several configuration options:
116116
#
117117
# * `idletime`: The number of seconds that a thread may be idle before being reclaimed.
118+
# * `name`: The name of the executor (optional). Printed in the executor's `#to_s` output and
119+
# a `<name>-worker-<id>` name is given to its threads if supported by used Ruby
120+
# implementation. `<id>` is uniq for each thread.
118121
# * `max_queue`: The maximum number of tasks that may be waiting in the work queue at
119122
# any one time. When the queue size reaches `max_queue` and no new threads can be created,
120123
# subsequent tasks will be rejected in accordance with the configured `fallback_policy`.

0 commit comments

Comments
 (0)