@dxos/compute - v0.16.0
    Preparing search index...

    Interface DurableProps

    interface DurableProps {
        input: Codec<any, any>;
        key: string;
        name?: string;
        optionalServices?: readonly Key<any, any>[];
        output: Codec<any, any>;
        resumable?: boolean;
        rpcs?: RpcGroup<any>;
        services: readonly Key<any, any>[];
        types?: readonly AnyEntity[];
    }
    Index

    Properties

    input: Codec<any, any>
    key: string

    Unique identifier for the process in the reverse DNS format.

    name?: string

    Human-readable label; Process.spawn names the process after it.

    optionalServices?: readonly Key<any, any>[]

    Services the process uses when the runtime has them: it gets each one that resolves and runs without the rest, so the handler reads them with Effect.serviceOption.

    output: Codec<any, any>
    resumable?: boolean

    False when a process interrupted by a restart could only fail on resuming. Such a process is kept in memory rather than persisted, unless a persisted parent waits on it. Defaults to true.

    rpcs?: RpcGroup<any>
    services: readonly Key<any, any>[]
    types?: readonly AnyEntity[]

    Schemas the process's own data model needs, registered with its database at spawn.

    Declared here beside services because a host cannot know them: it resolves a process by key and has no view of the types that process queries. Unregistered, a TYPED query silently matches nothing — a queue append succeeds and the read back returns empty, which reads as a lost write rather than a missing schema.