Gst.Iterator.prototype.foreach

function foreach(func:Gst.IteratorForeachFunction):Gst.IteratorResult {
    // Gjs wrapper for gst_iterator_foreach()
}

Iterate over all element of it and call the given function func for each element.

func

the function to call for each element.

Returns

the result call to Gst.Iterator.prototype.fold. The iterator will not be freed. MT safe.