Sha256: 38b87ad398cae4e48bfd2afd9e2e9a0af1ee34c379c781d749d38cfe5fe8bd29
Contents?: true
Size: 500 Bytes
Versions: 30
Compression:
Stored size: 500 Bytes
Contents
use crate::runtime::scheduler; #[track_caller] pub(crate) fn block_in_place<F, R>(f: F) -> R where F: FnOnce() -> R, { #[cfg(tokio_unstable)] { use crate::runtime::{Handle, RuntimeFlavor::MultiThreadAlt}; match Handle::try_current().map(|h| h.runtime_flavor()) { Ok(MultiThreadAlt) => { return scheduler::multi_thread_alt::block_in_place(f); } _ => {} } } scheduler::multi_thread::block_in_place(f) }
Version data entries
30 entries across 30 versions & 1 rubygems