Skip to content
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.

Documented example does not work #193

Open
mperham opened this issue May 8, 2015 · 2 comments
Open

Documented example does not work #193

mperham opened this issue May 8, 2015 · 2 comments
Milestone

Comments

@mperham
Copy link

mperham commented May 8, 2015

"Block Form" in the README raises an error:

Celluloid::Error: Thread pool is not running
    /Users/mike/.gem/ruby/2.2.1/gems/celluloid-0.16.0/lib/celluloid/internal_pool.rb:29:in `assert_running'
    /Users/mike/.gem/ruby/2.2.1/gems/celluloid-0.16.0/lib/celluloid/internal_pool.rb:62:in `block in get'
    /Users/mike/.gem/ruby/2.2.1/gems/celluloid-0.16.0/lib/celluloid/internal_pool.rb:61:in `synchronize'
    /Users/mike/.gem/ruby/2.2.1/gems/celluloid-0.16.0/lib/celluloid/internal_pool.rb:61:in `get'
    /Users/mike/.gem/ruby/2.2.1/gems/celluloid-0.16.0/lib/celluloid/actor_system.rb:30:in `get_thread'
    /Users/mike/.gem/ruby/2.2.1/gems/celluloid-0.16.0/lib/celluloid/thread_handle.rb:10:in `initialize'
    /Users/mike/.gem/ruby/2.2.1/gems/celluloid-0.16.0/lib/celluloid/actor.rb:128:in `new'
    /Users/mike/.gem/ruby/2.2.1/gems/celluloid-0.16.0/lib/celluloid/actor.rb:128:in `start'
    /Users/mike/.gem/ruby/2.2.1/gems/celluloid-0.16.0/lib/celluloid/cell.rb:43:in `initialize'
    /Users/mike/.gem/ruby/2.2.1/gems/celluloid-0.16.0/lib/celluloid.rb:168:in `new'
    /Users/mike/.gem/ruby/2.2.1/gems/celluloid-0.16.0/lib/celluloid.rb:168:in `new'
    /Users/mike/.gem/ruby/2.2.1/gems/celluloid-0.16.0/lib/celluloid/supervisor.rb:10:in `supervise'
    /Users/mike/.gem/ruby/2.2.1/gems/celluloid-0.16.0/lib/celluloid.rb:188:in `supervise'
@digitalextremist
Copy link
Member

Adding require 'celluloid/autostart' before require 'reel', the example works. I will either update the docs or update Reel to start the actor system. In 0.17.0 this is the default.

@digitalextremist digitalextremist added this to the 0.6.5 milestone May 8, 2015
@digitalextremist
Copy link
Member

Temporarily updated the docs until the default behavior is updated in 0.6.5

@digitalextremist digitalextremist modified the milestones: 0.6.5, triage Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants