mpv_wait_async_requests method

void mpv_wait_async_requests(
  1. Pointer<mpv_handle> ctx
)

Block until all asynchronous requests are done. This affects functions like mpv_command_async(), which return immediately and return their result as events.

This is a helper, and somewhat equivalent to calling mpv_wait_event() in a loop until all known asynchronous requests have sent their reply as event, except that the event queue is not emptied.

In case you called mpv_suspend() before, this will also forcibly reset the suspend counter of the given handle.

Implementation

void mpv_wait_async_requests(
  ffi.Pointer<mpv_handle> ctx,
) {
  return _mpv_wait_async_requests(
    ctx,
  );
}