Skip to content

Instantly share code, notes, and snippets.

@antifuchs
Created September 10, 2013 06:35
Show Gist options
  • Save antifuchs/6505717 to your computer and use it in GitHub Desktop.
Save antifuchs/6505717 to your computer and use it in GitHub Desktop.
# Chalk::Dev::Server::ProcessWatcher is an instance of EM::ProcessWatch,
# but this should work for all subclasses of EM::Connection.
before do
@env = proc {}
EM::Environment.register_block(@env)
@watcher = Chalk::Dev::Server::ProcessWatcher.new(@env)
end
# To use @watcher now, you don't need EM.run or any shenanigans.
@antifuchs
Copy link
Author

No shenanigans except these shenanigans.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment