Resolves with the return value of {@see Task::run()}. * * @throws TaskFailureThrowable Promise fails if {@see Task::run()} throws an exception. */ public function enqueue(Task $task): Promise; /** * @return Promise Resolves with the worker exit code. */ public function shutdown(): Promise; /** * Immediately kills the context. */ public function kill(); }