You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Start(interval, t => t.IsCancellationRequested ? action() : TaskEx.CompletedTask);
The clauses of the if statement are reversed causing it to return a completed task if cancellation is not requested. The correct statement should be to negate the if condition:
Start(interval, t => !t.IsCancellationRequested ? action() : TaskEx.CompletedTask);
The text was updated successfully, but these errors were encountered:
There is a bug in ActionScheduler.cs line 50:
Start(interval, t => t.IsCancellationRequested ? action() : TaskEx.CompletedTask);
The clauses of the if statement are reversed causing it to return a completed task if cancellation is not requested. The correct statement should be to negate the if condition:
Start(interval, t => !t.IsCancellationRequested ? action() : TaskEx.CompletedTask);
The text was updated successfully, but these errors were encountered: