@theophilusdev/conduit
    Preparing search index...

    Class ConduitQueue

    Internal concurrency queue system for Conduit.

    Handles:

    • per-thread job sequencing
    • controlled delay between messages
    • cross-thread switching delays
    • rate-limit smoothing

    This queue ensures that operations targeting the same thread are executed sequentially, while also adding randomized delays to simulate natural interaction timing and reduce API abuse risk.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Enqueues a job for a specific thread.

      Jobs are executed in FIFO order per thread.

      Type Parameters

      • T

      Parameters

      • threadID: string

        Target thread for execution

      • job: ConduitQueueJob<T>

        Async function representing the operation

      Returns Promise<T>

      Promise resolving with the job result

      If the queue is not currently running for the thread, execution starts automatically.