ruby-concurrency / concurrent-ruby

Modern concurrency tools including agents, futures, promises, thread pools, supervisors, and more. Inspired by Erlang, Clojure, Scala, Go, Java, JavaScript, and classic concurrency patterns.
https://ruby-concurrency.github.io/concurrent-ruby/
Other
5.68k stars 418 forks source link

Ensure positive int passed to `Concurrent::Semaphore` constructor #973

Closed khaile closed 1 year ago

khaile commented 1 year ago

Address #967

eregon commented 1 year ago

Thank you for the PR, that made me realize the behavior is intended and instead the docs need to be updated (I'll do that), see https://github.com/ruby-concurrency/concurrent-ruby/issues/967#issuecomment-1361182570.