setTimeout that works with the co generator framework