public function __construct($cb) { EventLoop::$instance || EventLoop::init(); $this->obj = $cb($this); }