ProcessDefinition<Id, R>Canonical process declaration that can be registered with a typed the process manager.
modelsprocess
Source src/Process.ts:2266 lines
export interface interface ProcessDefinition<out Id extends string, out R>Canonical process declaration that can be registered with a typed
the process manager.
ProcessDefinition<out function (type parameter) Id in ProcessDefinition<out Id extends string, out R>Id extends string, out function (type parameter) R in ProcessDefinition<out Id extends string, out R>R>
{
readonly ProcessDefinition<out Id extends string, out R>.id: out Id extends stringid: function (type parameter) Id in ProcessDefinition<out Id extends string, out R>Id;
readonly ProcessDefinition<out Id extends string, out R>.kind: "process"kind: "process";
readonly ProcessDefinition<out Id extends string, out R>.process: Process<R>(property) ProcessDefinition<out Id extends string, out R>.process: {
name: string;
type: "managed";
effect: Effect.Effect<void, never, R>;
run: () => Effect.Effect<unknown, never, R>;
snapshot: Effect.Effect<ProcessSnapshot>;
events: Stream.Stream<ProcessLiveEvent>;
polling: { readonly wake: Effect.Effect<void>; readonly resetCadence: Effect.Effect<void> };
}
process: interface Process<out R>Managed process handle for the process manager.
Process<function (type parameter) R in ProcessDefinition<out Id extends string, out R>R>;
}
Referenced by 1 symbols