Using hypercore on a multi-threaded async/await executor requires it to be send. This commit adds an example which requires the crate to be send, and changes all references to Rc with Arc.
Checklist
[x] tests pass
[x] tests and/or benchmarks are included: async example
[x] documentation is changed or added
Context
Working on making hypercore thread-safe to use with async i/o. Draft PR to work in a distribute fashion with others and have earlier feedback.
Choose one: a 🙋 feature
Using hypercore on a multi-threaded async/await executor requires it to be send. This commit adds an example which requires the crate to be send, and changes all references to Rc with Arc.
Checklist
async
exampleContext
Working on making hypercore thread-safe to use with async i/o. Draft PR to work in a distribute fashion with others and have earlier feedback.
Related to:
Needs:
Semver Changes
Minor?