1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/ruby/shared
Jean Boussier 60defe0a68 thread_sync.c: Clarify and document the behavior of timeout == 0
[Feature #18982]

Instead of introducing an `exception: false` argument to have `non_block`
return nil rather than raise, we can clearly document that a timeout of 0
immediately returns.

The code is refactored a bit to avoid doing a time calculation in
such case.
2022-10-17 16:56:00 +02:00
..
basicobject
enumerable
enumerator
fiber
file Update to ruby/spec@cbfaf51 2022-07-27 17:18:25 +02:00
hash
io
kernel
math
process
queue thread_sync.c: Clarify and document the behavior of timeout == 0 2022-10-17 16:56:00 +02:00
rational
sizedqueue thread_sync.c: Clarify and document the behavior of timeout == 0 2022-10-17 16:56:00 +02:00
string Update to ruby/spec@cbfaf51 2022-07-27 17:18:25 +02:00
time