@bitsinfra/fusee
    Preparing search index...

    Function asRequester

    • Names who asks for the signals, cancellations, terminations and resets made inside fn: their journal records carry it as by (audit). The HTTP API names its token or the proxy's signed-in user the same way.

      await asRequester("job:nightly", () => engine.run("order-1").cancel("expired"));
      

      Type Parameters

      • T

      Parameters

      • by: string
      • fn: () => T

      Returns T