Skip to content

Commit

Permalink
Use tap, not returning, to avoid activesupport
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Jan 23, 2011
1 parent 6fd3be4 commit 74aa308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_record/fiber_patches.rb
Expand Up @@ -24,7 +24,7 @@ def wait(timeout)
fiber.resume(false)
end
@queue << fiber
returning Fiber.yield do
Fiber.yield.tap do
x.cancel
end
end
Expand Down

0 comments on commit 74aa308

Please sign in to comment.