Skip to content

Commit 8132175

Browse files
committed
Remove millisecond versions of methods
The Duration versions have been available since 102ff37. In std, millisecond versions have been deprecated.
1 parent 8535c5e commit 8132175

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/lib.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -261,13 +261,6 @@ impl Queue {
261261
}
262262
}
263263

264-
/// After the specified delay, submits a closure for asynchronous execution
265-
/// on self.
266-
pub fn exec_after_ms<F>(&self, ms: u32, work: F)
267-
where F: 'static + Send + FnOnce() {
268-
self.exec_after(Duration::from_millis(ms as u64), work);
269-
}
270-
271264
/// After the specified delay, submits a closure for asynchronous execution
272265
/// on self.
273266
pub fn exec_after<F>(&self, delay: Duration, work: F)
@@ -494,13 +487,6 @@ impl Group {
494487
assert!(result == 0, "Dispatch group wait errored");
495488
}
496489

497-
/// Waits for all tasks associated with self to complete within the
498-
/// specified duration.
499-
/// Returns true if the tasks completed or false if the timeout elapsed.
500-
pub fn wait_timeout_ms(&self, ms: u32) -> bool {
501-
self.wait_timeout(Duration::from_millis(ms as u64))
502-
}
503-
504490
/// Waits for all tasks associated with self to complete within the
505491
/// specified duration.
506492
/// Returns true if the tasks completed or false if the timeout elapsed.

0 commit comments

Comments
 (0)