Promise.newWithChangeFunc

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