Yield long tasks with scheduler.yield()