Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

  yield;
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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: