public bool TryDisconnect(string endpoint) { if (ZmqNative.disconnect(_handle, endpoint) == -1) { return(false); } return(true); }
public bool TryDisconnect(string endpoint) { while (ZmqNative.disconnect(_handle, endpoint) == -1) { if (ZmqUtil.WasInterrupted()) { continue; } return(false); } return(true); }