mirror of https://github.com/Cysharp/UniTask
Update ToCoroutineEnumerator<T> to return a T from Current instead of object
parent
06067cd4c8
commit
58d5cc1ca6
|
@ -854,7 +854,7 @@ namespace Cysharp.Threading.Tasks
|
||||||
Action<Exception> exceptionHandler = null;
|
Action<Exception> exceptionHandler = null;
|
||||||
bool isStarted = false;
|
bool isStarted = false;
|
||||||
UniTask<T> task;
|
UniTask<T> task;
|
||||||
object current = null;
|
T current = null;
|
||||||
ExceptionDispatchInfo exception;
|
ExceptionDispatchInfo exception;
|
||||||
|
|
||||||
public ToCoroutineEnumerator(UniTask<T> task, Action<T> resultHandler, Action<Exception> exceptionHandler)
|
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()
|
public bool MoveNext()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue