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

    Interface Manager

    Every process this client can see or run, local and remote, behind one surface.

    The reads span both runtimes, so they answer "is my process running, wherever it runs" — which is what a UI renders and what a caller holding no handle can ask. The control verbs take a Location: a remote process is not a local one, so the caller still names where it runs, but no longer has to hold both managers to do so.

    interface Manager {
        processTree: Effect<readonly Process.Process<any, any, any>[]>;
        processTreeAtom: Atom<readonly Process.Process<any, any, any>[]>;
        attach<I, O, Rpcs extends Any = never>(
            pid: string & Brand<"ProcessId">,
            options?: LocationOptions,
        ): Effect<Process.Process<I, O, Rpcs>>;
        handles(
            options?: ListOptions & LocationOptions,
        ): Effect<readonly Process.Any[]>;
        list(
            filter?: Process.Filter,
        ): Effect<readonly Process.Process<any, any, any>[]>;
        spawn<I, O, Rpcs extends Any = never>(
            definition: Operation.Durable<I, O, any, Rpcs>,
            options?: Process.SpawnOptions & LocationOptions,
        ): Effect<Process.Process<I, O, Rpcs>>;
        subscribeToTraceMessages(filter: Trace.Filter): Stream<Trace.Message>;
    }
    Index

    Properties

    processTree: Effect<readonly Process.Process<any, any, any>[]>

    Current state of the process tree.

    processTreeAtom: Atom<readonly Process.Process<any, any, any>[]>

    Atom for the process tree.

    Methods

    • The live process pid at options.location. A process that has already exited replays its outputs, so its result stays readable after the exit.

      Dies when no such process is known, or when the location is a remote runtime that offers no process control.

      Type Parameters

      • I
      • O
      • Rpcs extends Any = never

      Parameters

      Returns Effect<Process.Process<I, O, Rpcs>>