mirror of
https://github.com/Cysharp/UniTask.git
synced 2026-05-18 05:00:14 +00:00
import from UniRx and some modified.
This commit is contained in:
16
Assets/UniRx.Async/ExceptionExtensions.cs
Normal file
16
Assets/UniRx.Async/ExceptionExtensions.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user