File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,8 @@ impl Delay {
45
45
///
46
46
/// The returned instance of `Delay` will be bound to the timer specified by
47
47
/// the `handle` argument.
48
- fn new_handle ( at : Instant , handle : TimerHandle ) -> Delay {
48
+ #[ doc( hidden) ]
49
+ pub fn new_handle ( at : Instant , handle : TimerHandle ) -> Delay {
49
50
let inner = match handle. inner . upgrade ( ) {
50
51
Some ( i) => i,
51
52
None => {
Original file line number Diff line number Diff line change 1
1
//! A general purpose crate for working with timeouts and delays with futures.
2
2
//!
3
- //! This crate is intended to provide general purpose timeouts and interval
4
- //! streams for working with `futures`.
5
- //!
6
- //! Basic usage of this crate is relatively simple:
3
+ //! # Examples
7
4
//!
8
5
//! ```no_run
9
6
//! # #[runtime::main]
16
13
//! println!("waited for 3 secs");
17
14
//! # }
18
15
//! ```
19
- //!
20
- //! And you're off to the races!
21
16
22
17
#![ deny( missing_docs) ]
23
18
#![ warn( missing_debug_implementations) ]
@@ -32,6 +27,9 @@ mod timer;
32
27
use arc_list:: { ArcList , Node } ;
33
28
use heap:: { Heap , Slot } ;
34
29
use heap_timer:: HeapTimer ;
35
- use timer:: { ScheduledTimer , Timer , TimerHandle } ;
30
+ use timer:: { ScheduledTimer , TimerHandle } ;
31
+
32
+ #[ doc( hidden) ]
33
+ pub use timer:: Timer ;
36
34
37
35
pub use self :: delay:: Delay ;
You can’t perform that action at this time.
0 commit comments