mirror of
https://github.com/Cysharp/UniTask.git
synced 2026-05-15 11:30:09 +00:00
16 lines
352 B
C#
16 lines
352 B
C#
#if CSHARP_7_OR_LATER || (UNITY_2018_3_OR_NEWER && (NET_STANDARD_2_0 || NET_4_6))
|
|
|
|
using System;
|
|
|
|
namespace UniRx.Async
|
|
{
|
|
public static class ExceptionExtensions
|
|
{
|
|
public static bool IsOperationCanceledException(this Exception exception)
|
|
{
|
|
return exception is OperationCanceledException;
|
|
}
|
|
}
|
|
}
|
|
|
|
#endif |