faastjs.cleanupoptions.gctimeout.md

April 11, 2023 ยท View on GitHub

faastjs > CleanupOptions > gcTimeout

CleanupOptions.gcTimeout property

Number of seconds to wait for garbage collection. Default: 10.

Signature:

gcTimeout?: number;

Remarks

Garbage collection can still be operating when cleanup is called; this option limits the amount of time faast waits for the garbage collector. If set to 0, the wait is unlimited.