API reference@evolu/commonTask › RunEvent

Defined in: packages/common/src/Task.ts:1060

Events emitted by a Run for monitoring and debugging.

Events bubble up through parent runs, enabling centralized monitoring at the root. Use with Run.onEvent to track Run lifecycle.

Extends

Properties

data

data:
  | Readonly<{
  childId: string & Brand<"Id">;
  type: "ChildAdded";
}>
  | Readonly<{
  childId: string & Brand<"Id">;
  type: "ChildRemoved";
}>
  | Readonly<{
  state:   | Readonly<{
     type: "Running";
   }>
     | Readonly<{
     type: "Disposing";
   }>
     | Readonly<{
     outcome:   | Readonly<{
        ok: true;
        value: unknown;
      }>
        | Readonly<{
        error: unknown;
        ok: false;
      }>;
     result:   | Readonly<{
        ok: true;
        value: unknown;
      }>
        | Readonly<{
        error: unknown;
        ok: false;
      }>;
     type: "Settled";
   }>;
  type: "StateChanged";
}>;

Inherited from

RunEvent.data


id

id: string & Brand<"Id">;

Inherited from

RunEvent.id


timestamp

timestamp: number &
  Brand<"Int"> &
  Brand<"NonNegative"> &
  Brand<"LessThan281474976710655"> &
  Brand<"Millis">;

Inherited from

RunEvent.timestamp