@dxos/app-graph - v0.16.0
    Preparing search index...

    Function waitFor

    • Resolves when the node exists in the graph; immediately if it already does.

      The graph is populated asynchronously — connectors expand a level at a time and the objects behind them load out of band — and expandSync is fire-and-forget, so a consumer that needs a specific node has no completion to await and would otherwise poll for it.

      Deliberately unbounded: whether a node is merely late or will never arrive is the caller's question, so the deadline belongs at the call site (Effect.timeout). Interrupting is safe — the subscription is released on interruption.

      Parameters

      Returns Effect<
          Readonly<
              {
                  cacheable?: string[];
                  data: any;
                  id: string;
                  properties: Readonly<Record<string, any>>;
                  type: string;
              },
          >,
      >