public QueryCallback AsyncQuery(PreparedStatement stmt) { PreparedStatementTask task = new PreparedStatementTask(stmt, true); // Store future result before enqueueing - task might get already processed and deleted before returning from this method Task <SQLResult> result = task.GetFuture(); _queue.Push(task); return(new QueryCallback(result)); }
public void Execute(PreparedStatement stmt) { PreparedStatementTask task = new PreparedStatementTask(stmt); _queue.Push(task); }