Page Contents
Home > @loopback/context > Context > once
Context.once() method
Signature:
once(event: string | symbol, listener: (...args: any[]) => void): this;
Parameters
| Parameter | Type | Description |
|---|---|---|
| event | string \| symbol | |
| listener | (...args: any\[\]) => void |
Returns:
this