Closes #4
To control the limit of yield, I created a new option to the function forEmitOf that receives a new parameter called limit and use this parameter for controlling the flow.
I create a new flag that when the parameter is equal or higher than the limit ends up the iteration is set up as false than the while conditions is no fulfilled and ends up al the iterations and the events are closed, is important to say that when the limit value is 0 the behavior is the same as not sending the limit.
Closes #4 To control the limit of yield, I created a new option to the function forEmitOf that receives a new parameter called limit and use this parameter for controlling the flow. I create a new flag that when the parameter is equal or higher than the limit ends up the iteration is set up as false than the while conditions is no fulfilled and ends up al the iterations and the events are closed, is important to say that when the limit value is 0 the behavior is the same as not sending the limit.