mirror of
https://github.com/Cysharp/UniTask.git
synced 2026-05-17 20:50:11 +00:00
complete delay and factory
This commit is contained in:
@@ -8,6 +8,14 @@ namespace UniRx.Async
|
||||
{
|
||||
// UnityEngine Bridges.
|
||||
|
||||
public partial struct UniTask2
|
||||
{
|
||||
public static IEnumerator ToCoroutine(Func<UniTask2> taskFactory)
|
||||
{
|
||||
return taskFactory().ToCoroutine();
|
||||
}
|
||||
}
|
||||
|
||||
public partial struct UniTask
|
||||
{
|
||||
public static IEnumerator ToCoroutine(Func<UniTask> taskFactory)
|
||||
|
||||
Reference in New Issue
Block a user