We used callbacks and generators. It was a bit messy at times, but really, it wasn't all that different. I still use generators quite often.
Oh... only a "bit" messy, you say? ;)