setImmediate for the co generator framework