id_wait_async
function id_wait_async(id:Gst.ClockID, func:Gst.ClockCallback):Gst.ClockReturn { // Gjs wrapper for gst_clock_id_wait_async() }
Register a callback on the given Gst.ClockID id with the given function and user_data. When passing a Gst.ClockID with an invalid time to this function, the callback will be called immediately with a time set to GST_CLOCK_TIME_NONE. The callback will be called when the time of id has been reached.
The callback func can be invoked from any thread, either provided by the core or from a streaming thread. The application should be prepared for this.
- id
a Gst.ClockID to wait on
- func
The callback function
- Returns
the result of the non blocking wait. MT safe.