mirror of
https://github.com/Cysharp/UniTask.git
synced 2026-05-20 22:50:16 +00:00
Add Awaitable<T>.ToUniTask
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user