Fix API changes in EventLoop