Skip to content

Instantly share code, notes, and snippets.

@clc3123
clc3123 / thin_async_app_example.ru
Created November 26, 2011 02:13
thin_async_app_example.ru
require "eventmachine"
class DeferrableBody
include EventMachine::Deferrable
def call(body)
body.each do |chunk|
@body_callback.call(chunk)
end
end