1 min readNov 26, 2018
The code which you have written is prone to a memory leak. For each iteration of the generator you are creating a new eventListener. These will not get cleaned up and make app slow with usage.
The code which you have written is prone to a memory leak. For each iteration of the generator you are creating a new eventListener. These will not get cleaned up and make app slow with usage.