-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get return values from run_until_complete
#42
Comments
Yeah, I agree that the return types on several functions should be more generic. One change that I was thinking about making recently was making I think it makes sense to change |
Personally I find being able to return Though according to docs, that gets converted to an empty python tuple? |
That's unfortunate. Idk if it's worth changing Maybe we could have a |
That might conflict with |
Actually () does get converted to None - there's However is there a reason to constrain the type parameter? Might be a detail I'm missing, but it seems most flexible for the user if it returns any old |
I didn't constrain the return values of |
Ah right, of course. I think |
It might be nice if the signature of
run_until_complete
functions became:... so that return values from anything running inside can propagate.
Just an idea, if it makes sense.
The text was updated successfully, but these errors were encountered: