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.
The resource or resource with config to run.
Optional
The options for the run.
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(); Copy
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();
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.