Could thunks be turned into generators? - augment thunk middleware to notice and handle iterators ``` javascript interface Iterator { next(value) : IteratorResult; [optional] throw(value) : IteratorResult; [optional] return(value) : IteratorResult; } interface IteratorResult { value : any; done : bool; } ``` ``` javascript interface AsyncIterator { next(value) : Promise<IteratorResult>; [optional] throw(value) : Promise<IteratorResult>; [optional] return(value) : Promise<IteratorResult>; } ```
Could thunks be turned into generators?