use makeStoredSubscriber

Begin iterating the source, storing serialized iteration values. If the storageNode's setValue operation rejects, the iteration will be terminated.

Returns a StoredSubscription that can be used by a client to directly follow the iteration themselves, or obtain information to subscribe to the stored data out-of-band.

  • Type Parameters

    • T

    Parameters

    • subscription: Subscription<T>
    • OptionalstorageNode: ERef<StorageNode>
    • Optionalmarshaller: ERef<{
          fromCapData: FromCapData<unknown>;
          serialize: ToCapData<unknown>;
          toCapData: ToCapData<unknown>;
          unserialize: FromCapData<unknown>;
      }> = ...

    Returns StoredSubscription<T>