fixes toAsync by using immediateScheduler instead of timeoutScheduler, which was undefined.