iya-sts
    Preparing search index...

    Variable walkInSlices

    walkInSlices: (
        map: Map<any, any>,
        visit: (value: any, key: any) => any,
        options?: { slice?: number; within?: (fn: () => void) => void },
    ) => Promise<number> = walkInSlices

    Type Declaration

      • (
            map: Map<any, any>,
            visit: (value: any, key: any) => any,
            options?: { slice?: number; within?: (fn: () => void) => void },
        ): Promise<number>
      • Visits every entry of a Map a slice at a time, a turn of the event loop between slices.

        Parameters

        • map: Map<any, any>

          the Map, or a realms.map() view of one

        • visit: (value: any, key: any) => any

          called per entry; answering true deletes that entry through map

        • Optionaloptions: { slice?: number; within?: (fn: () => void) => void }

          slice, the entries per turn (SLICE when omitted), and within, which runs each slice (inside a realm, say)

        Returns Promise<number>

        how many entries visit deleted