Add Awaitable.AsUniTask()
parent
6f5d818544
commit
a4be8f316e
|
@ -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
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c29533c9e4284dee914b71a6579ea274
|
||||
timeCreated: 1698895807
|
Loading…
Reference in New Issue