@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
37 lines (24 loc) • 1.22 kB
Markdown
---
lang: en
title: 'API docs: core.lifecycleobserverregistry.notifygroups'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/core
permalink: /doc/en/lb4/apidocs.core.lifecycleobserverregistry.notifygroups.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/core](./core.md) > [LifeCycleObserverRegistry](./core.lifecycleobserverregistry.md) > [notifyGroups](./core.lifecycleobserverregistry.notifygroups.md)
## LifeCycleObserverRegistry.notifyGroups() method
Emit events to the observer groups
<b>Signature:</b>
```typescript
protected notifyGroups(events: (keyof LifeCycleObserver)[], groups: LifeCycleObserverGroup[], reverse?: boolean): Promise<void>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| events | (keyof [LifeCycleObserver](./core.lifecycleobserver.md)<!-- -->)\[\] | Event names |
| groups | [LifeCycleObserverGroup](./core.lifecycleobservergroup.md)<!-- -->\[\] | Observer groups |
| reverse | boolean | |
<b>Returns:</b>
Promise<void>