David Pedersen and GitHub
3b339024f0
stream: impl Extend for StreamMap ( #4272 )
...
## Motivation
This allows `StreamMap` to be used with [`futures::stream::StreamExt::collect`][collect].
My use case is something like this:
```rust
let stream_map: StreamMap<_, _> = things
.into_iter()
.map(|thing| make_stream(thing)) // iterator of futures
.collect::<FuturesUnordered<_>>() // stream of streams
.collect::<StreamMap<_, _>>() // combine all the inner streams into one
.await;
async fn make_stream(thing: Thing) -> impl Stream { ... }
```
[collect]: https://docs.rs/futures/0.3.17/futures/stream/trait.StreamExt.html#method.collect
## Solution
Add `Extend` impl that delegates to the inner `Vec`.
2021-11-23 11:54:06 +01:00
Taiki Endo and GitHub
1a423b3322
chore: remove doc URL from Cargo.toml ( #4251 )
...
https://doc.rust-lang.org/cargo/reference/manifest.html#the-documentation-field
> If no URL is specified in the manifest file, crates.io will
> automatically link your crate to the corresponding docs.rs page.
2021-11-23 11:53:32 +01:00
Taiki Endo and GitHub
a8b662f643
ci: upgrade to new nightly ( #4268 )
2021-11-23 19:29:57 +09:00
Taiki Endo and GitHub
cf3206842c
chore: bump MSRV to 1.46 ( #4254 )
2021-11-23 12:09:24 +09:00
Taiki Endo and GitHub
fe770dc509
chore: fix newly added warnings ( #4253 )
2021-11-22 18:40:57 +09:00
Alice Ryhl and GitHub
d1a400912e
chore: prepare tokio-stream 0.1.8 ( #4198 )
2021-10-29 18:34:43 +02:00
Colin Walters and GitHub
e1c8b5a159
tests: add #[cfg(sync)] to watch test ( #4183 )
2021-10-21 09:11:14 +02:00
Francis Murillo and GitHub
909d3ec0ff
stream: add From<Receiver<T>> impl for receiver streams ( #4080 )
2021-08-29 16:30:13 +02:00
Nylonicious and GitHub
84f6845bf2
stream: impl FromIterator for StreamMap ( #4052 )
2021-08-24 13:21:02 +02:00
Alice Ryhl and GitHub
175d84e2b1
chore: fix doc failure in CI on master ( #4020 )
2021-08-03 09:07:38 +02:00
Alice Ryhl and GitHub
69a6585429
signal: make windows docs for signal module show up on unix builds ( #3770 )
2021-08-02 20:55:17 +02:00
Alice Ryhl and GitHub
5d61c997e9
chore: prepare tokio-stream 0.1.7 ( #3923 )
2021-07-07 10:58:51 +02:00
Blas Rodriguez Irizar and GitHub
4818c2ed05
fs: document performance considerations ( #3920 )
2021-07-06 16:25:13 +02:00
oiovoyo and GitHub
2e7de1ae1d
stream: modify HashMap to StreamMap in example. ( #3925 )
2021-07-05 16:10:55 +02:00
Alice Ryhl and GitHub
37e60fc7f9
chore: fix new clippy complaint ( #3915 )
2021-07-05 09:58:49 +02:00
Alice Ryhl and GitHub
8170e2787c
sync: fix watch wrapper ( #3914 )
2021-07-02 23:24:02 +02:00
Taiki Endo and GitHub
08ed41f339
chore: fix typos ( #3907 )
2021-07-01 02:06:56 +09:00
Alice Ryhl and GitHub
38204f5fba
time: fix Timeout size_hint ( #3902 )
2021-06-29 20:06:10 +02:00
Taiki Endo and GitHub
9d8b37d51a
macros: suppress clippy::default_numeric_fallback lint in generated code ( #3831 )
2021-06-02 18:16:23 +09:00
Folyd and GitHub
f3ed064a26
chore: update *::{max, min}_value() to const *::MAX and *::MIN respectively ( #3794 )
2021-05-17 12:31:58 +02:00
Alice Ryhl and GitHub
aaa150d211
chore: prepare tokio-stream v0.1.6 ( #3785 )
2021-05-14 18:22:44 +02:00
John-John Tedro and GitHub
2c5dc83019
cargo: path dependencies for all tokio things ( #3764 )
2021-05-08 12:54:30 +02:00
Taiki Endo and GitHub
c4b6b130f3
chore: bump nightly to nightly-2021-04-25 ( #3754 )
2021-05-05 17:39:17 +02:00
Chế Vũ Gia Hy and GitHub
a945ce0996
stream: implement Error and Display for BroadcastStreamRecvError ( #3745 )
2021-05-05 11:15:42 +02:00
Marco Ieni and GitHub
a08ce0d3e0
ci: check docs of private items ( #3715 )
2021-04-30 13:25:50 +02:00
Nylonicious and GitHub
8fc49dc522
chore: update years in all licenses ( #3665 )
2021-03-30 21:45:13 +02:00
Taiki Endo and GitHub
7384813979
chore: update proptest to 1 ( #3653 )
2021-03-27 19:34:11 +09:00
Kai Jewson and GitHub
69b129b405
stream: avoid yielding in AllFuture and AnyFuture ( #3625 )
2021-03-21 09:34:18 +01:00
David Pedersen and GitHub
b4918adbd8
chore: prepare tokio-stream v0.1.5 ( #3624 )
2021-03-20 12:17:37 +01:00
6919f7cede
test: Make Mock both Send and Sync ( #3594 )
...
Co-authored-by: Jake Ham <[email protected] >
2021-03-10 14:29:22 -05:00
Matthew James Briggs and GitHub
8c5cde9bc3
stream: documentation note for throttle Unpin ( #3600 )
2021-03-10 08:39:43 +01:00
Alice Ryhl and GitHub
88863a0c5d
chore: prepare tokio-stream v0.1.4 ( #3598 )
2021-03-09 22:10:57 +01:00
nickelc and GitHub
704de8c01b
stream: remove duplicate doc(test(..)) & cfg_attr declarations ( #3571 )
2021-03-06 20:54:28 +09:00
Thomas Orozco and GitHub
47be928444
sync: yield initial value in WatchStream ( #3576 )
2021-03-05 21:35:12 +01:00
Pirmin Kalberer and GitHub
fd93ecf5e0
stream: remove duplicate doc_cfg declaration ( #3561 )
2021-02-27 22:47:26 +01:00
36d7dab504
chore: remove html_root_url ( #3489 )
...
Co-authored-by: Alice Ryhl <[email protected] >
2021-02-18 14:11:39 -08:00
Alice Ryhl and GitHub
e827829402
signal: add Signal wrappers to tokio-stream ( #3510 )
2021-02-07 11:30:18 +01:00
Alice Ryhl and GitHub
23fdc2b3c4
chore: prepare tokio-stream 0.1.3 ( #3507 )
2021-02-05 22:18:56 +01:00
Alice Ryhl and GitHub
0a04954d5c
stream: update features and doc for broadcast/watch stream ( #3504 )
2021-02-05 20:39:27 +01:00
Fuyang Liu and GitHub
1c1e0e3fc9
tokio-stream: add wrapper for broadcast and watch ( #3384 )
2021-02-05 19:56:24 +01:00
Alice Ryhl and GitHub
766a89bf94
chore: prepare tokio-stream 0.1.2 ( #3414 )
2021-01-12 21:38:51 +01:00
Taiki Endo and GitHub
d37486dd06
util: remove path deps ( #3413 )
...
* util: remove path deps
* ci: run clippy with --all-features
* ci: run tests with --all-features on FreeBSD CI
2021-01-13 00:19:57 +09:00
Alice Ryhl and GitHub
3549092a0c
docs: fix tokio-stream features not being displayed ( #3378 )
2021-01-05 11:43:09 +01:00
Alice Ryhl and GitHub
3b840fb305
stream: remove path deps ( #3376 )
2021-01-04 21:04:22 +01:00
Alice Ryhl and GitHub
4beb1862ac
chore: prepare tokio-stream 0.1.1 ( #3374 )
2021-01-04 19:46:01 +01:00
Alice Ryhl and GitHub
7f17822ed9
stream: add Stream wrappers in tokio-stream ( #3343 )
2021-01-04 19:03:18 +01:00
Rob Ede and GitHub
56272b2ec7
stream: move async-stream to dev-deps ( #3366 )
2021-01-02 13:43:41 +09:00
Alice Ryhl and GitHub
4d7b73f5b3
chore: create stream_ext module ( #3342 )
2020-12-26 17:05:51 +01:00
Carl Lerche and GitHub
a66017f049
chore: prepare Tokio 1.0 release ( #3319 )
2020-12-23 09:26:14 -08:00
Taiki Endo and GitHub
ce0e9c67cf
chore: Revert "use #[non_exhaustive] instead of private unit field" ( #3323 )
...
This reverts commit 575938d457 .
2020-12-23 08:27:58 -08:00