node-ctypes - v2.17.1
    Preparing search index...

    Interface ExecutorOptions

    Options of Executor.

    interface ExecutorOptions {
        name?: string;
        spin?: number;
        spinLimit?: number;
    }
    Index
    name?: string

    Thread name shown by debuggers and profilers (default "node-ctypes").

    spin?: number

    Busy-wait budget in microseconds (default 50, 0 to disable, at most 10000). After a call the executor thread polls for the next one this long (at most 50 µs) before sleeping, and the JavaScript thread waits for a call submitted to an idle executor, completing it without a round trip through the event loop: awaited calls in sequence cost a few microseconds instead of tens. The JavaScript thread waits spin for a function not called yet; then, per function, about one and a half times its typical duration (measured on every call), at least spin and at most spinLimit. A function that usually takes longer is not waited for: its calls complete through the event loop, without delaying the others.

    spinLimit?: number

    Longest wait in microseconds for a function that usually takes longer than spin (default 500, at most 10000; 0: never more than spin).