Skip to content

Sleep Hook #305

@tleish

Description

@tleish

In using Falcon, does async include a hook to monkey-patch Kernel#sleep with Async#sleep?

em-synchrony has the following hook/logic you can add to your code if using something like Goliath.

# Redirects to EM::Synchrony.sleep
require "em-synchrony"
EM::Synchrony.on_sleep do |*args|
  EM::Synchrony.sleep(*args)
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions