Skip to main content

team_tab

Function team_tab 

Source
pub(super) async fn team_tab(
    state: &AppState,
    leader: &Leader,
    leaders_tab: &str,
) -> String
Expand description

The tab leader’s workers open in. leaders_tab (where the leader’s pane is, or where it works from when parked) is the way out: if the workspace can’t be found or the tab can’t be made, the workers open there as they did before. Both callers hold the leader’s lock (leader_lock) from before the user is asked until the last worker is open, so one leader’s find-or-make never overlaps itself.