There was an error while loading. Please reload this page.
1 parent 692d2b7 commit 752a561Copy full SHA for 752a561
1 file changed
grpc/src/rt/tracker.rs
@@ -88,7 +88,7 @@ pub(crate) struct TaskTracker {
88
impl<R: Runtime> TrackedRuntime<R> {
89
/// Creates a new tracked runtime and its associated tracker.
90
///
91
- /// Callers can call `wait_for_tasks` on the returned tracker at the end of
+ /// Callers must call `wait_for_tasks` on the returned tracker at the end of
92
/// the test.
93
94
/// ```rust
@@ -240,6 +240,7 @@ mod tests {
240
tracked_rt.spawn(Box::pin(async {
241
tokio::time::sleep(Duration::from_millis(1)).await;
242
}));
243
+
244
tracker.wait_for_tasks().await;
245
}
246
0 commit comments