Promise.newWithChangeFunc

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

class Promise
static
newWithChangeFunc

Parameters

func gst.types.PromiseChangeFunc

a #GstPromiseChangeFunc to call

Return Value

Type: gst.promise.Promise

a new #GstPromise