11件ヒット
[1-11件を表示]
(0.009秒)
ライブラリ
- ビルトイン (11)
検索結果
-
Fiber
. yield(*arg = nil) -> object (18115.0) -
現在のファイバーの親にコンテキストを切り替えます。
...す。
コンテキストの切り替えの際に Fiber#resume に与えられた引数を yield メソッドは返します。
@param arg 現在のファイバーの親に渡したいオブジェクトを指定します。
@raise FiberError Fiber でのルートファイバーで呼ばれた場......合に発生します。
//emlist[例:][ruby]{
a = nil
f = Fiber.new do
a = Fiber.yield()
end
f.resume()
f.resume(:foo)
p a #=> :foo
//}...