-
Notifications
You must be signed in to change notification settings - Fork 341
Async combinators #262
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
Async combinators #262
Conversation
This is very exciting; thanks for putting in the work! |
@yoshuawuyts can we r+ #263 so this one can be updated and move on from draft? |
src/stream/stream/mod.rs
Outdated
a.parse::<u32>().ok() | ||
}); | ||
|
||
let mut parsed = unsafe { std::pin::Pin::new_unchecked(&mut parsed) }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm is there something we could do about the unsafe
block here? Even using pin_utils
might be better than what we currently have, but I'm curious why we need it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, that's must be some leftover
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall this is looking really good! -- left a few nits about the examples; but very excited for this!
@yoshuawuyts fixed, but the |
Dang, it seems that CI went and broke between the last commit and the most recent one. Currently trying to fix parts of it through #280, but I'm thinking I should probably just manually run the tests on this PR to confirm things are good and then merge (: |
@montekki could you try rebasing on master? |
@montekki could you try rebasing again? -- I really want to get this to pass CI so we can merge it. |
@yoshuawuyts @montekki what is the state of this? |
@dignifiedquire this still needed? merged with master, going to do required cleanups a bit later |
As far as I know, this was postponed to the next major version: #496 (comment) (perhaps because async closure is incomplete) |
Ok no rush then. |
Ok, at this point I think that I'd rather re-implement it from scratch when time comes than continue attempts to update this PR so closing. |
Partially fixes #244 (Probably that issue needs to be broken down in two: 1) for what can be done now 2) what can be done in the future like async closures and taking by ref.
Also unimplements
Unpin
forall
andany
combinators becasue now we have a future cached that may not be unpin.