NativeScript 9.1 Released → V8 14.9, Vite 8 HMR, built for rapid agentic visual iteration
Dig in
ts
function queueGC(delay?: number, useThrottle?: boolean): any;

Defined in: utils/index.d.ts:36

An utility function that queues a garbage collection, multiple calls in quick succession are debounced by default and only one gc will be executed after 900ms.

Parameters ​

ParameterTypeDescription
delay?numberCustomize the delay
useThrottle?booleanInstead of default debounce strategy, use throttling

Returns ​

any

Previous
openUrlAsync