Class: SingletonIterator

asynciterator~SingletonIterator(item)

An iterator that emits a single item.

Constructor

new SingletonIterator(item)

Creates a new SingletonIterator.

Parameters:
Name Type Description
item object

The item that will be emitted.

Extends

  • module:asynciterator.AsyncIterator