Skip to content

Commit

Permalink
do end for multiline blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
igrigorik committed Oct 30, 2011
1 parent cd1a68e commit 7a7cccc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/em-synchrony.rb
Expand Up @@ -46,13 +46,14 @@ module Synchrony
#
def self.sync(df)
f = Fiber.current
xback = lambda {|*args|
xback = lambda do |*args|
if f == Fiber.current
return *args
else
f.resume(*args)
end
}
end

df.callback &xback
df.errback &xback

Expand Down

0 comments on commit 7a7cccc

Please sign in to comment.