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 = default(CancellationToken))
Parameters
enumerator
System.Collections.IEnumerator
timing
PlayerLoopTiming
cancellationToken
System.Threading.CancellationToken
ToUniTask(IEnumerator, MonoBehaviour)
public static UniTask ToUniTask(this IEnumerator enumerator, MonoBehaviour coroutineRunner)
Parameters
enumerator
System.Collections.IEnumerator
coroutineRunner
MonoBehaviour
WithCancellation(IEnumerator, CancellationToken)
public static UniTask WithCancellation(this IEnumerator enumerator, CancellationToken cancellationToken)
Parameters
enumerator
System.Collections.IEnumerator
cancellationToken
System.Threading.CancellationToken