Update ToCoroutineEnumerator<T> to return a T from Current instead of object

pull/660/head
Josh Cross 2025-04-17 15:47:45 -07:00 committed by GitHub
parent 06067cd4c8
commit 58d5cc1ca6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -854,7 +854,7 @@ namespace Cysharp.Threading.Tasks
Action<Exception> exceptionHandler = null;
bool isStarted = false;
UniTask<T> task;
object current = null;
T current = null;
ExceptionDispatchInfo exception;
public ToCoroutineEnumerator(UniTask<T> task, Action<T> resultHandler, Action<Exception> exceptionHandler)
@ -893,7 +893,7 @@ namespace Cysharp.Threading.Tasks
}
}
public object Current => current;
public T Current => current;
public bool MoveNext()
{