euporie.core.utils.run_in_thread_with_context

euporie.core.utils.run_in_thread_with_context(func: Callable, *args: Any, daemon: bool = True, **kwargs: Any) None

Run a function in an thread, but make sure it uses the same contextvars.

This is required so that the function will see the right application.