Hide Subscription internals
.. and introduce `stream::channel` helper
This commit is contained in:
parent
e50aa03edc
commit
8bc49cd886
11 changed files with 268 additions and 246 deletions
|
|
@ -31,7 +31,7 @@ pub mod time {
|
|||
pub fn every(
|
||||
duration: std::time::Duration,
|
||||
) -> Subscription<std::time::Instant> {
|
||||
Subscription::from_recipe(Every(duration))
|
||||
subscription::from_recipe(Every(duration))
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue