Liking cljdoc? Tell your friends :D
ClojureScript only.

js.Generator

The Generator object is returned by a generator function and conforms to both the iterable protocol and the iterator protocol.

The Generator object is returned by a generator function and
conforms to both the iterable protocol and the iterator protocol.
raw docstring

nextcljs

(next this value)

Method.

The next() method returns an object with two properties done value. You can also provide a parameter to the next method to a value to the generator.

gen.next(value)

See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator/next

Method.

The next() method returns an object with two properties done
value. You can also provide a parameter to the next method to
a value to the generator.

`gen.next(value)`

See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator/next`
sourceraw docstring

returncljs

(return this value)

Method.

The return() method returns the given value and finishes the

gen.return(value)

See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator/return

Method.

The return() method returns the given value and finishes the

`gen.return(value)`

See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator/return`
sourceraw docstring

throwcljs

(throw this exception)

Method.

The throw() method resumes the execution of a generator by throwing error into it and returns an object with two properties done value.

gen.throw(exception)

See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator/throw

Method.

The throw() method resumes the execution of a generator by throwing
error into it and returns an object with two properties done
value.

`gen.throw(exception)`

See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator/throw`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close