Page Contents

Home > @loopback/core > LifeCycleObserverRegistry > notifyGroups

LifeCycleObserverRegistry.notifyGroups() method

Emit events to the observer groups

Signature:

protected notifyGroups(events: (keyof LifeCycleObserver)[], groups: LifeCycleObserverGroup[], reverse?: boolean): Promise<void>;

Parameters

Parameter Type Description
events (keyof LifeCycleObserver)[] Event names
groups LifeCycleObserverGroup[] Observer groups
reverse boolean (Optional)

Returns:

Promise<void>