Skip to main content

active_for_thread

Function active_for_thread 

Source
pub fn active_for_thread(
    repo: &Repository,
    thread_name: &str,
) -> Option<ActiveTransaction>
Expand description

Return the active transaction whose thread matches thread_name, if any. Used by state-changing verbs that target a specific thread: the verb should either route into that transaction’s buffer (full wiring is follow-on work) or refuse to proceed (today’s shape).