Add Awaitable<T>.ToUniTask

This commit is contained in:
hadashiA
2023-11-02 13:54:55 +09:00
parent a4be8f316e
commit 5f3aa18f38

View File

@@ -7,6 +7,11 @@ namespace Cysharp.Threading.Tasks
{ {
await awaitable; await awaitable;
} }
public static async UniTask<T> AsUniTask<T>(this UnityEngine.Awaitable<T> awaitable)
{
return await awaitable;
}
} }
} }
#endif #endif