-
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
I've added lightio to my Gemfile, started rails console and tried to execute the simple example
Running via Spring preloader in process 10594
Loading development environment (Rails 5.2.2)
irb(main):001:0> result = []
=> []
irb(main):002:0> b1 = LightIO::Beam.new {result << 1}
=> #<LightIO::Core::Beam:0x0000557fd27d0b48@/home/username/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/lightio-0.4.4/lib/lightio/core/beam.rb:49 (created)>
irb(main):003:0> b2 = LightIO::Beam.new {result << 2}
=> #<LightIO::Core::Beam:0x0000557fd27f8440@/home/username/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/lightio-0.4.4/lib/lightio/core/beam.rb:49 (created)>
irb(main):004:0> b1.join
Traceback (most recent call last):
1: from (irb):4
FiberError (fiber called across stack rewinding barrier)
irb(main):005:0>
Do I need to use Soba project with rails in order to execute this code in the rails console?
Metadata
Metadata
Assignees
Labels
No labels