forked from mirror/async-std
Changing scope of disclosure
This commit is contained in:
parent
c1f7be5d42
commit
54fa559554
1 changed files with 2 additions and 1 deletions
|
@ -51,7 +51,8 @@ pin_project! {
|
|||
}
|
||||
|
||||
impl<F> TimeoutFuture<F> {
|
||||
pub fn new(future: F, dur: Duration) -> TimeoutFuture<F> {
|
||||
#[allow(dead_code)]
|
||||
pub(super) fn new(future: F, dur: Duration) -> TimeoutFuture<F> {
|
||||
TimeoutFuture { future: future, delay: Delay::new(dur) }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue