Class: Datastar::RailsAsyncExecutor
- Inherits:
-
AsyncExecutor
- Object
- AsyncExecutor
- Datastar::RailsAsyncExecutor
- Defined in:
- lib/datastar/rails_async_executor.rb
Instance Method Summary collapse
Instance Method Details
#prepare(response) ⇒ Object
7 8 9 |
# File 'lib/datastar/rails_async_executor.rb', line 7 def prepare(response) response.delete_header 'Connection' end |
#spawn(&block) ⇒ Object
11 12 13 14 15 |
# File 'lib/datastar/rails_async_executor.rb', line 11 def spawn(&block) Async do Rails.application.executor.wrap(&block) end end |