Class: Grape::API

Inherits:
Object
  • Object
show all
Defined in:
lib/grape-async/api.rb

Class Method Summary collapse

Class Method Details

.async(method = :threaded) ⇒ Object



5
6
7
# File 'lib/grape-async/api.rb', line 5

def async(method = :threaded)
  route_setting :async, { async: true, async_method: method }
end