reduceMemoryUse method

Future<void> reduceMemoryUse()

Frees memory that the session's renderer can rebuild, such as caches.

See mln_render_session_reduce_memory_use in the C API reference.

Errors:

  • Status.targetLost when the session loses its target before the work runs.

Implementation

Future<void> reduceMemoryUse() => _run(
  (arena, completion) => raw.mln_render_session_reduce_memory_use(
    _handle.raw,
    completion,
    nativeDiagnostic,
  ),
);