UniTask.Bridge.cs 390 B

123456789101112131415161718
  1. #pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
  2. using System;
  3. using System.Collections;
  4. namespace Cysharp.Threading.Tasks
  5. {
  6. // UnityEngine Bridges.
  7. public partial struct UniTask
  8. {
  9. public static IEnumerator ToCoroutine(Func<UniTask> taskFactory)
  10. {
  11. return taskFactory().ToCoroutine();
  12. }
  13. }
  14. }