class com.dongxiguo.continuation.utils.Generator<Element>

Available on all platforms

An Iterator<Element> that yields each element lazily.

Class Fields

static function iterator<Element>(runFunction:RunFunction<Element>):Generator<Element>

static function toIterable<Element>(runFunction:RunFunction<Element>):Iterable<Element>

Instance Fields

function new(runFunction:RunFunction<Element>):Void

function hasNext():Bool

function next():Null<Element>