Closed ig-sinicyn closed 4 years ago
Net 3.5 + Theraot.Core v3.1.3:
public void TestWaitForCancellation() { var cts = new CancellationTokenSource(); var task = TaskEx.Run( async () => { try { await TaskEx.Delay(_timeout10, cts.Token); } catch (OperationCanceledException) { } }, cts.Token); cts.CancelAfter(_timeout1); task.Wait(); // never completes }
Same code on net 4.0 works fine.
Uploading nuget version 3.1.4
Net 3.5 + Theraot.Core v3.1.3:
Same code on net 4.0 works fine.