mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* cont.c (rb_fiber_m_transfer): improve sample code in Fiber#transfer
documentation. emphasize the difference between transfer and resume. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9cf2170e78
commit
f0feb0a4f0
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed May 2 23:26:04 2012 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
|
||||
|
||||
* cont.c (rb_fiber_m_transfer): improve sample code in Fiber#transfer
|
||||
documentation. emphasize the difference between transfer and resume.
|
||||
|
||||
Wed May 2 23:21:20 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* parse.y (parser_yylex): allow spaces between lambda arrow and
|
||||
|
|
1
cont.c
1
cont.c
|
@ -1436,6 +1436,7 @@ rb_fiber_m_resume(int argc, VALUE *argv, VALUE fib)
|
|||
* fiber2 = Fiber.new do
|
||||
* puts "In Fiber 2"
|
||||
* fiber1.transfer
|
||||
* puts "Never see this message"
|
||||
* end
|
||||
*
|
||||
* fiber3 = Fiber.new do
|
||||
|
|
Loading…
Reference in a new issue