libp2p / js-libp2p-interfaces

Contains test suites and interfaces you can use to implement the various components of js libp2p.
Other
75 stars 28 forks source link

fix: allow stream methods to be async #404

Closed achingbrain closed 1 year ago

achingbrain commented 1 year ago

If a stream implementation needs to return a promise let them do so, this allows them to implement internal backpressure by slowing down reads from the source passed to the sink function.

github-actions[bot] commented 1 year ago

:tada: This PR is included in version @libp2p/interface-stream-muxer-v4.1.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: