MCPcopy Create free account
hub / github.com/GCWing/BitFun / cleanup_invalid_workspaces

Function cleanup_invalid_workspaces

src/apps/desktop/src/api/commands.rs:2005–2020  ·  view source on GitHub ↗
(
    state: State<'_, AppState>,
    app: tauri::AppHandle,
    startup_trace: State<'_, DesktopStartupTrace>,
)

Source from the content-addressed store, hash-verified

2003
2004#[tauri::command]
2005pub async fn cleanup_invalid_workspaces(
2006 state: State<'_, AppState>,
2007 app: tauri::AppHandle,
2008 startup_trace: State<'_, DesktopStartupTrace>,
2009) -> Result<usize, String> {
2010 let trace_started = Instant::now();
2011 cleanup_invalid_workspaces_impl(
2012 &state,
2013 &app,
2014 &startup_trace,
2015 "cleanup_invalid_workspaces",
2016 Some("cleanup_invalid_workspaces"),
2017 trace_started,
2018 )
2019 .await
2020}
2021
2022#[tauri::command]
2023pub async fn initialize_workspace_startup_state(

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected