DEV Community

Discussion on: A story of building a custom Flow operator - bufferTimeout

Collapse
 
findumesh profile image
findumesh

'emit(events)' call should be replaced with 'emit(events.toList())' to make sure that the downstream operators work on the immutable list. The original list gets cleared in the next line so downstream operator may receive an empty list.

Collapse
 
psfeng profile image
Pin-Sho Feng

Thanks, good catch!