Add Awaitable<T>.ToUniTask

master
hadashiA 2023-11-02 13:54:55 +09:00
parent a4be8f316e
commit 5f3aa18f38
1 changed files with 5 additions and 0 deletions

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