Module: Fastr::Async

Included in:
Controller
Defined in:
lib/fastr/async.rb

Instance Method Summary collapse

Instance Method Details

#async_resp(&blk) ⇒ Object



3
4
5
# File 'lib/fastr/async.rb', line 3

def async_resp(&blk)
  env['async.callback'].call(blk.call)
end

#render_async(resp = nil) ⇒ Object



7
8
9
# File 'lib/fastr/async.rb', line 7

def render_async(resp=nil)
  [-1, {}, []].freeze
end