Documentation
    Preparing search index...

    Interface MockTorrentState

    In-memory state of the torrent mock.

    const state = createMockTorrentService().mock.state();
    state.jobs.size === 0;
    interface MockTorrentState {
        fileSets: Map<string, { image: LinuxDistroImage; windowId: string }>;
        jobs: Map<string, MockTorrentJob>;
        nextFileSet: number;
        nextJob: number;
        nextPick: number;
        pendingReads: Map<string, MockTorrentPendingRead>;
        tick?: () => void;
    }
    Index

    Properties

    fileSets: Map<string, { image: LinuxDistroImage; windowId: string }>

    pickFiles handles: id → owning window and picked image.

    jobs: Map<string, MockTorrentJob>
    nextFileSet: number
    nextJob: number
    nextPick: number

    Catalog cursor for pickFiles.

    pendingReads: Map<string, MockTorrentPendingRead>
    tick?: () => void