class Sinatra::ExtendedRack

def after_response(&block)

def after_response(&block)
  raise NotImplementedError, 'only supports EventMachine at the moment' unless defined? EventMachine
  EventMachine.next_tick(&block)
end