IteratorItemFunction
Description:
[
CCode ( has_target =
false ) ]
public delegate IteratorItem IteratorItemFunction (
Iterator it,
out T item)
The function that will be called after the next item of the iterator has been retrieved.
This function will typically increase the refcount of the item or make a copy.
Implementors of a Iterator should implement this function and pass it to the
constructor of the custom iterator. The function will be called with the iterator lock held.
Parameters:
| it |
the iterator |
| item |
the item being retrieved. |
Returns:
| the result of the operation. |