Class: NoBrainer::Streams::ConcurrentAsyncHandler

Inherits:
RethinkDB::AsyncHandler show all
Defined in:
lib/nobrainer_streams.rb

Defined Under Namespace

Classes: AsyncQueryHandler

Instance Attribute Summary

Attributes inherited from RethinkDB::AsyncHandler

#callback, #connection, #options

Instance Method Summary collapse

Instance Method Details

#handlerObject



71
72
73
# File 'lib/nobrainer_streams.rb', line 71

def handler
  callback
end

#run(&action) ⇒ Object



66
67
68
69
# File 'lib/nobrainer_streams.rb', line 66

def run(&action)
  options[:query_handle_class] = AsyncQueryHandler
  yield
end