Method: Cassandra.cluster_async

Defined in:
lib/cassandra.rb

.cluster_async(options = {}) ⇒ Cassandra::Future<Cassandra::Cluster>

Creates a Cluster instance.

Returns:

See Also:



305
306
307
308
309
310
311
312
313
# File 'lib/cassandra.rb', line 305

def self.cluster_async(options = {})
  options, hosts = validate_and_massage_options(options)
rescue => e
  futures = options.fetch(:futures_factory) { return Future::Error.new(e) }
  futures.error(e)
else
  driver = Driver.new(options)
  driver.connect(hosts)
end