• Dispose all cached sessions.

    Properly disposes of all cached sessions, freeing up memory and cleaning up resources. This is more thorough than clearSessionCache() as it also disposes of ONNX Runtime sessions.

    Returns Promise<void>

    Example

    // Dispose all sessions and free resources
    await disposeAllSessions();

    // Verify all sessions are disposed
    const stats = getCacheStats();
    console.log(`Sessions after dispose: ${stats.currentSessions}`);