Type Alias LatestTopic<T>
LatestTopic<T>: { getUpdateSince: ((updateCount?: bigint | number) => Promise<UpdateRecord<T>>); } Type declaration
getUpdateSince: ((updateCount?: bigint | number) => Promise<UpdateRecord<T>>)
- (updateCount?): Promise<UpdateRecord<T>>
Parameters
Optional
updateCount: bigint | number
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 ofsubscribeAfter
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 ofnumber
as anupdateCount
is deprecated.