[−][src]Function libmpv_sys::mpv_wait_async_requests
pub unsafe extern "C" fn mpv_wait_async_requests(ctx: *mut mpv_handle)
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.