EnumeratorAsyncExtensions Class
Assembly: cs.temp.dll.dll
public static class EnumeratorAsyncExtensions
Inheritance
System.Object →
EnumeratorAsyncExtensions
Members
Methods
Methods
GetAwaiter<T>(T)
public static UniTask.Awaiter GetAwaiter<T>(this T enumerator)
where T : IEnumerator
ToUniTask(IEnumerator, PlayerLoopTiming, CancellationToken)
public static UniTask ToUniTask(this IEnumerator enumerator, PlayerLoopTiming timing = PlayerLoopTiming.Update, CancellationToken cancellationToken = null)
Parameters
enumerator
System.Collections.Generic.IEnumerator
timing
PlayerLoopTiming
cancellationToken
CancellationToken
ToUniTask(IEnumerator, MonoBehaviour)
public static UniTask ToUniTask(this IEnumerator enumerator, MonoBehaviour coroutineRunner)
Parameters
enumerator
System.Collections.Generic.IEnumerator
coroutineRunner
MonoBehaviour
WithCancellation(IEnumerator, CancellationToken)
public static UniTask WithCancellation(this IEnumerator enumerator, CancellationToken cancellationToken)
Parameters
enumerator
System.Collections.Generic.IEnumerator
cancellationToken
CancellationToken