ÿØÿà JFIF    ÿÛ „ ( %!1!%*+...983,7(-.- U:RDoc::AnyMethod[iI"new:ETI"Fiber::new;TT: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"TCreates new Fiber. Initially, the fiber is not running and can be resumed with ;TI"N#resume. Arguments to the first #resume call will be passed to the block:;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I" f = Fiber.new do |initial| ;TI" current = initial ;TI" loop do ;TI"- puts "current: #{current.inspect}" ;TI" current = Fiber.yield ;TI" end ;TI" end ;TI".f.resume(100) # prints: current: 100 ;TI"4f.resume(1, 2, 3) # prints: current: [1, 2, 3] ;TI".f.resume # prints: current: nil ;TI"# ... and so on ... ;T: @format0o; ; [I"WIf blocking: false is passed to Fiber.new, _and_ current thread ;TI"Vhas a Fiber.scheduler defined, the Fiber becomes non-blocking (see "Non-blocking ;TI"$Fibers" section in class docs).;T: @fileI" cont.c;T:0@omit_headings_from_table_of_contents_below0I"9Fiber.new(blocking: false) { |*args| ... } -> fiber ;T0[I" (*args);T@"FI" Fiber;TcRDoc::NormalClass00