Context.destroy

Destroys the $(ZMQ) context.

It is normally not necessary to do this manually, as the context will be destroyed automatically when the last reference to it goes out of scope.

struct Context
@safe
void
destroy
()

Throws

ZmqException if $(ZMQ) reports an error.

Corresponds to

$(ZMQREF zmq_ctx_destroy())

Examples

auto ctx = Context();
assert (ctx.initialized);
ctx.destroy();
assert (!ctx.initialized);

Meta