pub fn get_current_locals(py: Python<'_>) -> PyResult<TaskLocals>
Expand description

Either copy the task locals from the current task OR get the current running loop and contextvars from Python.