Class: Cql::Client::Pipeline
- Inherits:
-
Object
- Object
- Cql::Client::Pipeline
- Defined in:
- lib/cql/client/synchronous_prepared_statement.rb
Instance Method Summary collapse
- #execute(*args) ⇒ Object
-
#initialize(async_statement) ⇒ Pipeline
constructor
A new instance of Pipeline.
- #value ⇒ Object
Constructor Details
#initialize(async_statement) ⇒ Pipeline
Returns a new instance of Pipeline.
31 32 33 34 |
# File 'lib/cql/client/synchronous_prepared_statement.rb', line 31 def initialize(async_statement) @async_statement = async_statement @futures = [] end |
Instance Method Details
#execute(*args) ⇒ Object
36 37 38 |
# File 'lib/cql/client/synchronous_prepared_statement.rb', line 36 def execute(*args) @futures << @async_statement.execute(*args) end |