3 ms·
sorry? generators? well, I like generators, but what's your point?
by va1en0k 15y ago
sorry? generators? well, I like generators, but what's your point?
- pmjordan 15y agoyield; Will block execution until the generator is resumed and return control flow to the caller. I haven't actually tried it, but it should be pretty straightforward to wrap a generator function in such a way that it's driven (resumed) by callbacks from async I/O calls.