Page Contents

Home > @loopback/core > LifeCycleObserverRegistry > notifyObservers

LifeCycleObserverRegistry.notifyObservers() method

Notify an observer group of the given event

Signature:

protected notifyObservers(observers: LifeCycleObserver[], bindings: Readonly<Binding<LifeCycleObserver>>[], event: keyof LifeCycleObserver): Promise<void>;

Parameters

Parameter Type Description
observers LifeCycleObserver[]  
bindings Readonly<Binding<LifeCycleObserver>>[]  
event keyof LifeCycleObserver Event name

Returns:

Promise<void>