19 lines
390 B
C#
19 lines
390 B
C#
|
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
|
|||
|
|
|||
|
using System;
|
|||
|
using System.Collections;
|
|||
|
|
|||
|
namespace Cysharp.Threading.Tasks
|
|||
|
{
|
|||
|
// UnityEngine Bridges.
|
|||
|
|
|||
|
public partial struct UniTask
|
|||
|
{
|
|||
|
public static IEnumerator ToCoroutine(Func<UniTask> taskFactory)
|
|||
|
{
|
|||
|
return taskFactory().ToCoroutine();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|