提交 5121b001 编写于 作者: H Heejae Chang

renamed IsCancelled to ReportUnlessCanceled following our other code base

上级 771973a3
......@@ -38,7 +38,7 @@ internal static partial class Extensions
// wait task to finish
await task.ConfigureAwait(false);
}
catch (Exception ex) when (IsCancelled(ex, mergedCancellation.Token))
catch (Exception ex) when (ReportUnlessCanceled(ex, mergedCancellation.Token))
{
cancellationToken.ThrowIfCancellationRequested();
throw;
......@@ -72,7 +72,7 @@ internal static partial class Extensions
return result;
}
catch (Exception ex) when (IsCancelled(ex, mergedCancellation.Token))
catch (Exception ex) when (ReportUnlessCanceled(ex, mergedCancellation.Token))
{
cancellationToken.ThrowIfCancellationRequested();
throw;
......@@ -104,7 +104,7 @@ internal static partial class Extensions
// wait task to finish
await task.ConfigureAwait(false);
}
catch (Exception ex) when (IsCancelled(ex, mergedCancellation.Token))
catch (Exception ex) when (ReportUnlessCanceled(ex, mergedCancellation.Token))
{
cancellationToken.ThrowIfCancellationRequested();
throw;
......@@ -138,7 +138,7 @@ internal static partial class Extensions
return result;
}
catch (Exception ex) when (IsCancelled(ex, mergedCancellation.Token))
catch (Exception ex) when (ReportUnlessCanceled(ex, mergedCancellation.Token))
{
cancellationToken.ThrowIfCancellationRequested();
throw;
......@@ -146,7 +146,7 @@ internal static partial class Extensions
}
}
private static bool IsCancelled(Exception ex, CancellationToken token)
private static bool ReportUnlessCanceled(Exception ex, CancellationToken token)
{
// check whether we are in cancellation mode
if (token.IsCancellationRequested)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册