Made Ticker::next Send+Sync.
This commit is contained in:
parent
2d2bd679ee
commit
a2f9aa592e
1 changed files with 1 additions and 1 deletions
|
@ -185,7 +185,7 @@ impl Ticker {
|
|||
}
|
||||
|
||||
/// Waits for the next tick.
|
||||
pub fn next(&mut self) -> impl Future<Output = ()> + '_ {
|
||||
pub fn next(&mut self) -> impl Future<Output = ()> + Send + Sync + '_ {
|
||||
poll_fn(|cx| {
|
||||
if self.expires_at <= Instant::now() {
|
||||
let dur = self.duration;
|
||||
|
|
Loading…
Reference in a new issue