method

async_count

async_count(column_name = nil)
public

Same as #count, but performs the query asynchronously and returns an ActiveRecord::Promise.