Created
September 10, 2013 06:35
-
-
Save antifuchs/6505717 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No shenanigans except these shenanigans.