Created
December 30, 2011 00:14
-
-
Save godfat/1536857 to your computer and use it in GitHub Desktop.
app error: uninitialized fiber (FiberError)
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
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 } |
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
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