close method
void
close()
Undeclares the publisher and releases native resources.
Safe to call multiple times -- subsequent calls are no-ops.
Implementation
void close() {
if (_closed) return;
_closed = true;
bindings.zd_publisher_drop(_ptr.cast());
_matchingPort?.close();
_matchingController?.close();
calloc.free(_ptr);
}