Scheduler: use new event loop interface

Signed-off-by: Eduardo Silva <eduardo@monkey.io>