Skip to content
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

Switch to mutable refs for async io #85

Merged
merged 2 commits into from
Oct 30, 2024

Conversation

nyonson
Copy link
Collaborator

@nyonson nyonson commented Oct 28, 2024

Mutable refs appear to fit a little better in the async runtime ecosystem. This interface is a little more flexible since it can always be wrapped by another type which owns the I/O instances and just passes down references.

Since breaking things anyway in the interface, added more descriptive function names.

@nyonson nyonson changed the title Switch to mutable refs for io Switch to mutable refs for async io Oct 28, 2024
@rustaceanrob
Copy link
Collaborator

While we are at it can we switch to something more like encrypt_and_write and similar for the counterpart? I was a little confused using this at first

@nyonson nyonson marked this pull request as ready for review October 29, 2024 20:37
@nyonson nyonson requested a review from rustaceanrob October 29, 2024 20:37
@rustaceanrob
Copy link
Collaborator

Just needs rebase and looks good

@nyonson nyonson force-pushed the switch-to-mutable-io-refs branch from 1439076 to c0457ed Compare October 30, 2024 20:55
@nyonson nyonson force-pushed the switch-to-mutable-io-refs branch from c0457ed to 98fe548 Compare October 30, 2024 20:58
@rustaceanrob
Copy link
Collaborator

ACK 98fe548

@rustaceanrob rustaceanrob merged commit df1f835 into rust-bitcoin:main Oct 30, 2024
7 checks passed
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