Skip to content
This repository has been archived by the owner on Apr 2, 2018. It is now read-only.

Consider adding extension traits for ergonomics #37

Open
shepmaster opened this issue Feb 7, 2018 · 0 comments
Open

Consider adding extension traits for ergonomics #37

shepmaster opened this issue Feb 7, 2018 · 0 comments

Comments

@shepmaster
Copy link

Instead of e.g.

let consumer = timer
    .timeout_stream(socket, Duration::from_secs(2))
    .filter(|&v| v == 2)

I think that preserving the chaining of the future or stream would look better:

let consumer = socket
    .timeout(&timer, Duration::from_secs(2))
    .filter(|&v| v == 2)

Note that this allows dropping the _stream from the name.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant