Skip to content

Instantly share code, notes, and snippets.

@knewter
Created April 26, 2013 16:08
Show Gist options
  • Save knewter/5468414 to your computer and use it in GitHub Desktop.
Save knewter/5468414 to your computer and use it in GitHub Desktop.
logger = MessageLogger.new(File.expand_path('../../log/logger.log', __FILE__))
publisher = Publisher.new('tcp://127.0.0.1:41125')
first_proxy = FirstProxy.supervise_as(:first_proxy, 'some_url')
second_proxy = SecondProxy.supervise_as(:second_proxy, 'some_url')
Celluloid::Actor[:first_proxy].start
Celluloid::Actor[:second_proxy].start
sleep
@halorgium
Copy link

@knewter, is your #start call going to block forever?
If so, you will never start the second actor.

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