Brandon Benvie (2014-01-08T21:12:16.000Z)
On 1/8/2014 1:05 PM, Andrea Giammarchi wrote:
> Sorry, I explained it badly ... let me try again:
>
> what if a DOM event handler uses/creates/invokes inside its function 
> body a generator?
>
> Will the event pause until this will be satisfied?
>
> `a.addEventListener('click', function(e){ 
> if(methodThatInvokesGenerator()) e.stopPropagation(); });`

Calling a generator function just creates a paused generator. Generators 
can't pause callers, just themselves (via yield).
domenic at domenicdenicola.com (2014-01-09T16:40:24.124Z)
Calling a generator function just creates a paused generator. Generators 
can't pause callers, just themselves (via `yield`).