MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / forceGC

Function forceGC

apps/automated/src/ui-helper.ts:257–266  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

255}
256
257export function forceGC() {
258 if (__APPLE__) {
259 /* tslint:disable:no-unused-expression */
260 // Could cause GC on the next call.
261 new ArrayBuffer(4 * 1024 * 1024);
262 }
263
264 Utils.GC();
265 TKUnit.wait(0.001);
266}
267
268export function _generateFormattedString(): FormattedString {
269 let formattedString = new FormattedString();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected