sched: Introduce alternative task API.