Skip to content

Commit 79c89d7

Browse files
committed
deps: update gloo-timers to 0.3
1 parent 19ccd34 commit 79c89d7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ futures-lite = { version = "2.0.0", optional = true }
8686
async-process = { version = "2.0.0", optional = true }
8787

8888
[target.'cfg(target_arch = "wasm32")'.dependencies]
89-
gloo-timers = { version = "0.2.1", features = ["futures"], optional = true }
89+
gloo-timers = { version = "0.3.0", features = ["futures"], optional = true }
9090
wasm-bindgen-futures = { version = "0.4.10", optional = true }
9191
futures-channel = { version = "0.3.4", optional = true }
9292

src/stream/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@
4040
//! type Item;
4141
//! fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>>;
4242
//! }
43+
//! # impl Stream for () {
44+
//! # type Item = ();
45+
//! # fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> { Poll::Pending }
46+
//! # }
4347
//! ```
4448
//!
4549
//! A stream has a method, [`next`], which when called, returns an

0 commit comments

Comments
 (0)