LatestTopic<T>: {
    getUpdateSince: ((updateCount?: bigint | number) => Promise<UpdateRecord<T>>);
}

Type Parameters

  • T

Type declaration

  • getUpdateSince: ((updateCount?: bigint | number) => Promise<UpdateRecord<T>>)

    Returns a promise for an update record as of an update count. If the updateCount argument is omitted or differs from the current update count, the promise promptly resolves to the current record. Otherwise, after the next state change, the promise resolves to the resulting record. This is an attenuated form of subscribeAfter whose return value stands alone and does not allow consumers to pin a chain of historical PublicationRecords. Used to make lossy ("latest") iterators. NOTE: Use of number as an updateCount is deprecated.