* * @throws \Amp\Postgres\FailureException */ public function transaction(int $isolation = Transaction::COMMITTED): Promise; /** * @param string $channel Channel name. * * @return \Interop\Async\Promise<\Amp\Postgres\Listener> * * @throws \Amp\Postgres\FailureException */ public function listen(string $channel): Promise; }