tokio
1.41.1
In tokio::runtime::context::current
Function
tokio
::
runtime
::
context
::
current
::
with_current
Copy item path
source
ยท
[
−
]
pub(crate) fn with_current<F, R>(f: F) ->
Result
<R,
TryCurrentError
>
where F:
FnOnce
(&
Handle
) -> R,