Skip to content

Make RandomAccess returned owned futures#27

Open
cowlicks wants to merge 11 commits intomasterfrom
owned-futures
Open

Make RandomAccess returned owned futures#27
cowlicks wants to merge 11 commits intomasterfrom
owned-futures

Conversation

@cowlicks
Copy link
Member

All these trait methods return futures that borrow &mut self. This makes doing anything other than imperative one-after-another calls to methods almost impossible. So the trait was rewritten to return owned futures. Except for len()isis_empty()` which are now sync and infallible.

For more information see this issue in the hypercore repo.

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.

1 participant