Skip to content

Conversation

raviqqe
Copy link

@raviqqe raviqqe commented Apr 24, 2025

This PR refactors async context preparation using Waker::noop().

I just realized that this crate is building no-op wakers manually. Was there any reason not to use it?

@Finomnis
Copy link
Collaborator

This change requires bumping rust-version in Cargo.toml to 1.85.

@Finomnis
Copy link
Collaborator

Was there any reason not to use it?

Yes. Waker::noop() did not exist until a few months ago.

@raviqqe
Copy link
Author

raviqqe commented Apr 24, 2025

@Finomnis Ah, I see! Then, I'm gonna leave the merge of this PR to you. It's not really necessary but pure refactoring.

@Finomnis
Copy link
Collaborator

To honest, I'm unsure. I would sacrifice a lot of downwards compatibility for zero extra gain. So I'll probably leave this open and merge it in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants