class Litescheduler

def switch

Experimental RBS support (using type sampling data from the type_fusion project).

def switch: () -> false

This signature was generated using 30 samples from 2 applications.

switch the execution context to allow others to run
def switch
  if @scheduler == :fiber
    Fiber.scheduler.yield
    true
  elsif @scheduler == :polyphony
    Fiber.current.schedule
    Thread.current.switch_fiber
    true
  else
    # Thread.pass
    false
  end
end