From 5f96e646d4577d603ce29bd91dd12c915b9bc07b Mon Sep 17 00:00:00 2001 From: neuecc Date: Fri, 26 Feb 2021 10:27:22 +0900 Subject: [PATCH] netcore --- src/UniTask.NetCoreTests/WithCancellationTest.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/UniTask.NetCoreTests/WithCancellationTest.cs b/src/UniTask.NetCoreTests/WithCancellationTest.cs index 90236d2..3aeb42a 100644 --- a/src/UniTask.NetCoreTests/WithCancellationTest.cs +++ b/src/UniTask.NetCoreTests/WithCancellationTest.cs @@ -16,7 +16,7 @@ namespace NetCoreTests { CancellationTokenSource cts = new CancellationTokenSource(); - var v = await UniTask.Run(() => 10).WithCancellation(cts.Token); + var v = await UniTask.Run(() => 10).IgnoreWhenCanceled(cts.Token); v.Should().Be(10); } @@ -30,7 +30,7 @@ namespace NetCoreTests { await Task.Delay(TimeSpan.FromSeconds(1)); return 10; - }).WithCancellation(cts.Token); + }).IgnoreWhenCanceled(cts.Token); cts.Cancel();