hex-world
    Preparing search index...

    Interface GenerateAsyncOptions

    Options for the async generation drivers.

    interface GenerateAsyncOptions {
        signal?: AbortSignal;
        onProgress?: (progress: GenerationProgress) => void;
        sliceMs?: number;
    }
    Index

    Properties

    signal?: AbortSignal

    Abort mid-generation — the returned promise rejects with the signal's reason.

    onProgress?: (progress: GenerationProgress) => void

    Called with every progress event, in order. Drive a loading bar from this.

    sliceMs?: number

    Milliseconds of generation work per slice before yielding to the event loop. Default 12 — leaves headroom for a 60 fps frame. Raise it to finish faster at the cost of responsiveness.