faastjs.faastmodule.off.md

April 5, 2024 ยท View on GitHub

faastjs > FaastModule > off

FaastModule.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

**Returns:**

void

Remarks

Stops the callback listener from receiving future function statistics events. Calling FaastModule.cleanup() also turns off statistics events.