Context.detach

Detaches from the $(ZMQ) context.

If this is the last reference to the context, it will be destroyed with $(ZMQREF zmq_ctx_term()).

struct Context
@safe
void
detach
()

Throws

ZmqException if $(ZMQ) reports an error.

Examples

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

Meta