RunGeneratorUntilReturn (open)

Drives a (non-async) generator until it is exhausted, returns the final returned value

Syntax

// Core function, no LOADLIB necessary

VARIANT FUNCTION RunGeneratorUntilReturn(OBJECT generator)

Parameters

OBJECT generator

Generator to run

Return value

VARIANT

Generator return value