src/Cassandra/OperationState.cs
/// <summary>
/// Marks this operation as completed and invokes the callback with the exception using the default task scheduler.
/// Its safe to call this method multiple times as the underlying callback will be invoked just once.
/// </summary>
Marks this operation as completed and invokes the callback with the exception using the default task scheduler.
Its safe to call this method multiple times as the underlying callback will be invoked just once.
Marks this operation as completed and invokes the callback with the exception using the default task scheduler . Its safe to call this method multiple times as the underlying callback will be invoked just once .
public void InvokeCallback(Exception ex)
        {
            var callback = SetCompleted();
            if (callback == Noop)
            {
                return;
            }
            Task.Factory.StartNew(() => callback(ex, null), CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default);
        }
public void InvokeCallback ( Exception ex ) { var callback = SetCompleted ( ) ; if ( callback == Noop ) { return ; } Task . Factory . StartNew ( ( ) => callback ( ex , null ) , CancellationToken . None , TaskCreationOptions . None , TaskScheduler . Default ) ; }
Marks this operation as completed and invokes the callback with the exception using the default task scheduler.
Marks this operation as completed and invokes the callback with the exception using the default task scheduler .
//Invoke the callback in a new thread in the thread pool //This way we don't let the user block on a thread used by the Connection
ex
Exception