Closed IlyaTsilikovRAFrame closed 5 years ago
I think you cancel like that :
var cts = new CancellationTokenSource();
Task t = ctx.LoadStoredProc("").ExecNonQueryAsync();
ctx.Wait(cts.Token);
Is it important to add a CancellationToken to the api ?
I think it's important 'cause such or similar way I can just cancel call awaiting but not a procedure execution itself. But the embedded command cancellation can cancel also a procedure execution.
I see
IStoredProcBuilder.ExecNonQueryAsync ()
, etc. withoutCancellationToken
parameter. Ability to cancel is often important.