ruby-changes:47050
From: normal <ko1@a...>
Date: Sat, 24 Jun 2017 05:59:08 +0900 (JST)
Subject: [ruby-changes:47050] normal:r59165 (trunk): thread_sync.c: fix documentation for Queue#close
normal 2017-06-24 05:59:00 +0900 (Sat, 24 Jun 2017) New Revision: 59165 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59165 Log: thread_sync.c: fix documentation for Queue#close When Queue#closed? is true, using push/enq/<< will raise an exception, and not return nil. * thread_sync.c: fix documentation for Queue#close Thanks to John Anderson. [ruby-core:81749] [Misc #13673] Modified files: trunk/thread_sync.c Index: thread_sync.c =================================================================== --- thread_sync.c (revision 59164) +++ thread_sync.c (revision 59165) @@ -730,7 +730,7 @@ queue_do_push(VALUE self, struct rb_queu https://github.com/ruby/ruby/blob/trunk/thread_sync.c#L730 * * - +close+ will be ignored. * - * - calling enq/push/<< will return nil. + * - calling enq/push/<< will raise an exception. * * - when +empty?+ is false, calling deq/pop/shift will return an object * from the queue as usual. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/