faastjs > FaastModuleProxy > off
FaastModuleProxy.off() method
Deregister a callback for statistics events.
Signature:
off(name: "stats", listener: (statsEvent: FunctionStatsEvent) => void): void;
Parameters
Parameter |
Type |
Description |
---|---|---|
name |
"stats" | |
listener |
(statsEvent: FunctionStatsEvent) => void |
void
Remarks
Stops the callback listener from receiving future function statistics events. Calling FaastModule.cleanup() also turns off statistics events.