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.
(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`
(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`
(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`
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |