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
Since async closure has been stabilized for a while, I made a solution that generally follows this crate's idea but allow to make an async stream without macro.
I'd like to share it here for reference and see if we can have it at the upstream.
Since async closure has been stabilized for a while, I made a solution that generally follows this crate's idea but allow to make an async stream without macro.
I'd like to share it here for reference and see if we can have it at the upstream.
Playground: https://github.com/tisonkun/make-async-stream-snippet
Usage code looks like this:
Function body source code:
The text was updated successfully, but these errors were encountered: