Categories: None [Edit]

sync_enum

https://rubygems.org/gems/sync_enum
https://github.com/brucetesar/sync_enum
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.

Total

Ranking: 127,838 of 192,666
Downloads: 5,141

Daily

Ranking: 110,100 of 192,588
Downloads: 2

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,389,007,605bundler
81,310,508,356rake
29976,524,168rspec
56686,799,632rubocop
178283,464,470launchy
186270,718,732rubocop-rspec
1,22537,625,446rubocop-rake

Owners

#GravatarHandle
1iconbrucetesar