@bluelibs/runner - v6.9.0
    Preparing search index...

    Function createRetryingRpcLaneCommunicator

    • Wraps a lane communicator with transport-level retries.

      Only the methods implemented by the inner communicator are exposed, so lane routing checks (typeof communicator.eventWithResult === "function") keep working on the wrapped instance. Retry delays honor the caller abort signal: aborting rejects immediately instead of sleeping through the delay. Inputs must be replayable; set maxAttempts to 1 for streams or other single-use inputs.

      Parameters

      • communicator: IRpcLaneCommunicator

        The transport adapter to wrap.

      • policy: RpcLaneRetryPolicy = {}

        Retry policy; omit for three total attempts. Use maxAttempts: 1 for effects unsafe to repeat.

      Returns IRpcLaneCommunicator

      Communicator with identical methods plus retry behavior.