Skip to main content
Very Popular
Go to Latest
method AmqpConnection.prototype.closed
import { AmqpConnection } from "https://deno.land/x/amqp@v0.23.1/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.