lib/polyphony/core/global_api.rb
# Helper method for performing `#spin_loop` without throttling. Spins up a
# new fiber in which to run the loop.
#
# @param tag [any] new fiber's tag
# @param caller [Array<String>] caller info
# @param block [Proc] code to run
# @return [void]
Helper method for performing `#spin_loop` without throttling. Spins up a
new fiber in which to run the loop.
Helper method for performing ` #spin_loop ` without throttling . Spins up a new fiber in which to run the loop .
def spin_loop_without_throttling(tag, caller, block)
      Fiber.current.spin(tag, caller) do
        block.call while true
      rescue LocalJumpError, StopIteration
      end
    end
def spin_loop_without_throttling ( tag , caller , block ) Fiber . current . spin ( tag , caller ) do block . call while true rescue LocalJumpError , StopIteration end end
Helper method for performing `#spin_loop` without throttling.
Helper method for performing ` #spin_loop ` without throttling .
# break called or StopIteration raised
None
void
tag
new fiber's tag
new fiber ' s tag
caller
None
block
code to run
code to run