First time here…
I wanted to be able to pause a generator function, so I started with
@mbostock/pause-a-generator, and adapted it to be a generator function instead of a generator:
The slightly wonky thing about this is the need to manually bind
this whenever I use my pausable generator function. Does this seem reasonable, or would you recommend a different approach?
Thanks for any advice!