pingora_runtime

Function current_handle

Source
pub fn current_handle() -> Handle
Expand description

Return the Handle of current runtime. If the current thread is under a Steal runtime, the current Handle is returned. If the current thread is under a NoSteal runtime, the Handle of a random thread under this runtime is returned. This function will panic if called outside any runtime.