Iterate over multiple enumerators in parallel, using the external interface based on the #next method. Each call to #next returns an array, containing the next element for each of the enumerators. A StopIteration exception is raised as soon as any of the enumerators runs out of elements. SyncEnum differs from the standard library's REXML::SyncEnumerator in its use of the #next external iterator interface, while REXML::SyncEnumerator uses an #each internal iterator interface. The external interface is more convenient when you expect to end iteration before reaching the end of any of the enumerations, including cases where an enumerator generates an unending sequence.

Required Ruby Version

>= 2.7.0

Authors

Bruce Tesar

Versions

  1. 0.1.11
    1. source

      1. 0.1.11 source August 18, 2026 (12.5 KB)
  2. 0.1.10
    1. source

      1. 0.1.10 source April 10, 2026 (12.5 KB)
  3. 0.1.9
    1. source

      1. 0.1.9 source April 02, 2026 (12.5 KB)
  4. 0.1.8
    1. source

      1. 0.1.8 source April 01, 2026 (12.5 KB)
  5. 0.1.7
    1. source

      1. 0.1.7 source October 14, 2025 (12.5 KB)
Show all versions (7 total)

Pushed by

SHA 256 checksum