Optimize PromiseYieldExtensions.AwaitInstructionAwaiter
#466
Labels
Milestone
PromiseYieldExtensions.AwaitInstructionAwaiter
#466
PromiseYieldExtensions.GetAwaiter<TAwaitInstruction>(this TAwaitInstruction awaitInstruction)
returnsAwaitInstructionAwaiter<TAwaitInstruction>
which needlessly queries theCancelationToken.IsCancelationRequested
even when the user hasn't called.WithCancelation
. This can be optimized by splitting out the cancelation logic to a separateAwaitInstructionWithCancelationAwaiter<TAwaitInstruction>
.This will be a breaking change, so it should wait for the next major version.
The text was updated successfully, but these errors were encountered: