RubyGems Navigation menu

sync_enum 0.1.1

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 interator 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.

Gemfile:
= Copy to clipboard Copied!

install:
=

Versions:

  1. 0.1.1 - May 17, 2021 (12 KB)
  2. 0.1.0 - May 17, 2021 (12 KB)

Development Dependencies (7):

bundler ~> 2.0
launchy ~> 2.5
rake ~> 13.0
rspec ~> 3.0
rubocop ~> 1.7
rubocop-rake ~> 0.5
rubocop-rspec ~> 2.3

Owners:

Pushed by:

Authors:

  • Bruce Tesar

SHA 256 checksum:

fbbcbeb59e7df240c4231ae2b6bfb9fa9cff5fc5046adaa9c9cac00da5ed441e

Total downloads 3,641

For this version 2,151

License:

MIT

Required Ruby Version: >= 2.6.0

Links: