Skip to main content

BaseObserver<T>

Extended by

Type parameters

Type parameterValue
T extends BaseListenerBaseListener

Implements

Constructors

new BaseObserver()

new BaseObserver<T>(): BaseObserver<T>

Returns

BaseObserver<T>

Methods

iterateAsyncListeners()

iterateAsyncListeners(cb): Promise<void>

Parameters

ParameterType
cb(listener) => Promise<any>

Returns

Promise<void>


iterateListeners()

iterateListeners(cb): void

Parameters

ParameterType
cb(listener) => any

Returns

void


registerListener()

registerListener(listener): () => void

Register a listener for updates to the PowerSync client.

Parameters

ParameterType
listenerPartial<T>

Returns

Function

Returns

void

Implementation of

BaseObserverInterface.registerListener