Skip to content

Commit

Permalink
small language fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rkh authored Jul 25, 2016
1 parent 007d628 commit 596cf88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/thread_pools.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pool = Concurrent::ThreadPoolExecutor.new(
)
~~~

If you wants to provide a maximum queue size, you may also consider the `fallback_policy` which defines what will happen if work is posted to a pool when the queue of waiting work has reached the maximum size and no new threads can be created. Available policies:
If you want to provide a maximum queue size, you may also consider the `fallback_policy` which defines what will happen if work is posted to a pool when the queue of waiting work has reached the maximum size and no new threads can be created. Available policies:

* abort: Raise a `Concurrent::RejectedExecutionError` exception and discard the task. (default policy)
* discard: Silently discard the task and return nil as the task result.
Expand Down

0 comments on commit 596cf88

Please sign in to comment.