Resolves with the return value of Task::run(). */ public function enqueue(Task $task): Promise; /** * @return \Amp\Promise Exit code. */ public function shutdown(): Promise; /** * Immediately kills the context. */ public function kill(); }