import { AmqpConnection } from "https://dotland.deno.dev/x/amqp@v0.24.0/mod.ts";
Returns a promise that is settled when this connection is closed.
If the connection is gracefully closed, the promise will resolve.
If the connection is unexpectedly closed by the server or from an error, the promise will reject with the reason.