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:
Carl Lerche 2019-10-26 22:15:39 -07:00 committed by GitHub
parent 474befd23c
commit bccb713d98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,6 +86,10 @@ fn pool_shutdown() {
gated2(true).await;
});
pool.spawn(async move {
gated2(false).await;
});
drop(pool);
});
}