Promise.newWithChangeFunc

gst.promise.Promise newWithChangeFunc(gst.types.PromiseChangeFunc func) static nothrow

func will be called exactly once when transitioning out of gst.types.PromiseResult.Pending into any of the other #GstPromiseResult states.

Parameters

funca #GstPromiseChangeFunc to call

Returns

a new #GstPromise