elemental2.core.Generator Maven / Gradle / Ivy
package elemental2.core;
import jsinterop.annotations.JsMethod;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;
@JsType(isNative = true, namespace = JsPackage.GLOBAL)
public class Generator implements JsIteratorIterable {
public native JsIIterableResult next();
public native JsIIterableResult next(Object value);
@JsMethod(name = "return")
public native JsIIterableResult return_(VALUE value);
@JsMethod(name = "throw")
public native JsIIterableResult throw_(Object exception);
}