barrier method

Future<void> barrier()

Ends the session's pending frame demands and waits for its earlier work.

Frame demands that haven't started, including those that wait for a map update, finish with RenderResult.noUpdate.

See mln_render_session_barrier in the C API reference.

Errors:

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

Implementation

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