API reference › @evolu/common › Task › 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
id
id: string & Brand<"Id">;
Inherited from
timestamp
timestamp: number &
Brand<"Int"> &
Brand<"NonNegative"> &
Brand<"LessThan281474976710655"> &
Brand<"Millis">;