require 'eventless/version'
require 'eventless/fiber'
require 'eventless/loop'
require 'eventless/socket'
require 'eventless/select'
require 'eventless/timeout'
require 'eventless/event'

module Kernel
  alias_method :sleep_block, :sleep

  def sleep(duration)
    Eventless.loop.sleep(duration)
  end
end

module Eventless
  def self.spawn(&callback)
    f = Fiber.new(Eventless.loop.fiber, &callback)
    Eventless.loop.schedule(f)

    f
  end

  def self.loop
    Loop.default
  end

  def self.thread_patched?
    false
  end
end

require 'eventless/version'
require 'eventless/fiber'
require 'eventless/loop'
require 'eventless/socket'
require 'eventless/select'
require 'eventless/timeout'
require 'eventless/event'

module Kernel
  alias_method :sleep_block, :sleep

  def sleep(duration)
    Eventless.loop.sleep(duration)
  end
end

module Eventless
  def self.spawn(&block)
    f = Fiber.new(Eventless.loop.fiber, &block)
    Eventless.loop.schedule(f)

    f
  end

  def self.loop
    Loop.default
  end

  def self.thread_patched?
    false
  end
end

Fix variable name:The fiber body isn't a callback.
Fix variable name:The fiber body isn't a callback.
