Skip to content

Instantly share code, notes, and snippets.

@godfat
Created December 30, 2011 00:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save godfat/1536857 to your computer and use it in GitHub Desktop.
Save godfat/1536857 to your computer and use it in GitHub Desktop.
app error: uninitialized fiber (FiberError)
class Weird
def call env=nil
[1].each{ # if you comment out the each block, then it works
Rainbows.sleep 2
}
[200, {}, ["ok\n"]]
end
end
# bad
run Weird.new
# good
run lambda{ |env| Weird.new.call }
worker_processes 1
Rainbows! do
use :CoolioFiberSpawn
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment