Options
All
  • Public
  • Public/Protected
  • All
Menu

A simplified stripped down enumerator that until disposed will infinitely return the provided factory. This is analogous to a 'generator' and has a compatible interface.

Type parameters

  • T

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected _current

_current: T

Protected _index

_index: number

Private Optional _isEndless

_isEndless: boolean

true and false are explicit where as undefined means 'unknown'.

Private _iterator

_iterator: IIterator<T>

Accessors

current

  • get current(): T

isEndless

  • get isEndless(): boolean

Methods

Protected canMoveNext

  • canMoveNext(): boolean

dispose

  • dispose(): void

Protected getIsEndless

  • getIsEndless(): boolean

Protected incrementIndex

  • incrementIndex(): number

moveNext

  • moveNext(value?: any): boolean

next

nextValue

  • nextValue(): T

reset

  • reset(): void

return

Generated using TypeDoc