Make method only available in tests

This commit is contained in:
Thorsten Ball 2024-11-15 07:41:11 +01:00
parent 0d01cc2dd2
commit 05e057fffd

View file

@ -301,6 +301,7 @@ impl BackgroundExecutor {
/// Block the current thread until the given future resolves
/// or `duration` has elapsed.
#[cfg(any(test, feature = "test-support"))]
pub(crate) fn block_to_shutdown<R>(
&self,
duration: Duration,