You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was a little surprised that, when using aio_as_trio as a decorator, it only works on regular coroutine functions. For the followig test, only the non-commented parts work:
Yes, but decorator would be nicer to write, because it's at the declaration site instead of at every call site. At least having the option would be good.
I was a little surprised that, when using
aio_as_trio
as a decorator, it only works on regular coroutine functions. For the followig test, only the non-commented parts work:I found that the (maybe naive?) fix was not too hard; the following works as a replacement and makes the test above work:
If there is nothing I'm missing in this adaptation, I think this would make cross calling a lot cleaner.
The text was updated successfully, but these errors were encountered: