setImmediate and stuff with generators