mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-28 12:10:37 +00:00
thread-pool: test additional shutdown cases (#1697)
This adds an extra spawned task during the thread-pool shutdown loom test. This results in additional cases being tested, primarily tasks being stolen.
This commit is contained in:
parent
474befd23c
commit
bccb713d98
@ -86,6 +86,10 @@ fn pool_shutdown() {
|
||||
gated2(true).await;
|
||||
});
|
||||
|
||||
pool.spawn(async move {
|
||||
gated2(false).await;
|
||||
});
|
||||
|
||||
drop(pool);
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user