Add Awaitable.AsUniTask()

master
hadashiA 2023-11-02 12:35:05 +09:00
parent 6f5d818544
commit a4be8f316e
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,12 @@
#if UNITY_2023_1_OR_NEWER
namespace Cysharp.Threading.Tasks
{
public static class UnityAwaitableExtensions
{
public static async UniTask AsUniTask(this UnityEngine.Awaitable awaitable)
{
await awaitable;
}
}
}
#endif

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: c29533c9e4284dee914b71a6579ea274
timeCreated: 1698895807