Method: Cassandra.cluster_async
- Defined in:
- lib/cassandra.rb
.cluster_async(options = {}) ⇒ Cassandra::Future<Cassandra::Cluster>
Creates a Cluster instance.
305 306 307 308 309 310 311 312 313 |
# File 'lib/cassandra.rb', line 305 def self.cluster_async( = {}) , hosts = () rescue => e futures = .fetch(:futures_factory) { return Future::Error.new(e) } futures.error(e) else driver = Driver.new() driver.connect(hosts) end |