Update ToCoroutineEnumerator<T> to return a T? from Current instead of object
ToCoroutine<T>() provides an excellent way to port existing synchronous calls to asynchronous without needing to fully rewrite everything - when inside a coroutine, it can be yielded instead.
To get the value that the previously-synchronous function would have returned, you use .Current. Right now, Current is an object, when it should be a T. I think this might have been to avoid problems with non-nullable / reference types, so I wrapped it in Nullable (with T?).
Eliminates extra unnecessary typecasting with this.
This PR is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days.
not sure if feature development is ended in the repo, but bumping to remove stale tag as this would be nice