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

    Function run

    • This is the central function that kicks off your runner. You can run as many resources as you want in a single process, they will run in complete isolation.

      Type Parameters

      • C
      • V extends Promise<any>

      Parameters

      Returns Promise<RunResult<V extends Promise<U> ? U : V>>

      A promise that resolves to the result of the run.

      import { r, run } from "@bluelibs/runner";

      const app = r.resource("app")
      .register([myTask, myService])
      .build();

      const runtime = await run(app);
      await runtime.runTask(myTask, { name: "Ada" });
      await runtime.dispose();