Close all the channels
332063
private void closeChannels() {
        conn.closeChannel(video.getId());
        conn.closeChannel(audio.getId());
        conn.closeChannel(data.getId());
    }
780365
def close(self):
        
        if self.channel is not None: self.channel.close()
        if self.__connection is not None: self.__connection.close()
224427
def close(self):
        """"""
        if self._channel and not self._channel.handler.channel_close:
            self._channel.close()
        self._channel_ref = None
556476
def close(self):
        
        if not self.active:
            return
        self.stop_thread()
        for chan in list(self._channels.values()):
            chan._unlink()
        self.sock.close()
680740
protected function doClose()
    {
        $this->isOpen = false;
        unset($this->connection->channels[$this->channelId]);
        $this->channelId = $this->connection = null;
    }
1270740
@Override
  public void close() throws IOException
  {
    SocketChannel channel = _channel;
    _channel = null;

    if (channel != null)
      channel.close();
  }
493094
def quit(self):
        
        
        for c in self.channels:
            c.users.remove(self.nick)
        self.channels = []
1271495
private void close(final SocketChannel channel, final SelectionKey key) {
    try {
      channel.close();
    } catch (Exception e) {
      // already closed; ignore
    }
    try {
      key.cancel();
    } catch (Exception e) {
      // already cancelled/closed; ignore
    }
  }
1153760
def channels_leave(self, room_id, **kwargs):
        """"""
        return self.__call_api_post('channels.leave', roomId=room_id, kwargs=kwargs)
1113297
private function close()
    {
        $this->runtime = null;

        if ($this->channel !== null) {
            $this->channel->close();
        }

        $this->channel = null;

        $this->hub->remove($this->id);
    }
1233190
def close(self):
        
        keys = set(self._conns.keys())
        for key in keys:
            self.stop_socket(key)

        self._conns = {}
615036
public void closeChannel(int channelId) {
        if (log.isTraceEnabled()) {
            log.trace("closeChannel: {}", channelId);
        }
        Channel chan = channels.remove(channelId);
        if (log.isTraceEnabled()) {
            log.trace("channel: {} for id: {}", chan, channelId);
            if (chan == null) {
                log.trace("Channels: {}", channels);
            }
        }
        /*
        ReceivedMessageTaskQueue queue = tasksByChannels.remove(channelId);
        if (queue != null) {
            if (isConnected()) {
                // if connected, drain and process the tasks queued-up
                log.debug("Processing remaining tasks at close for channel: {}", channelId);
                processTasksQueue(queue);
            }
            queue.removeAllTasks();
        } else if (log.isTraceEnabled()) {
            log.trace("No task queue for id: {}", channelId);
        }
        */
        chan = null;
    }
1038074
@Override
  public void close() {
    if (closed) return;
    
    closed = true;
    
    try {
      selector.close();
    } catch (Exception e) {
      logger.log("Failed to close selctor for: '" + name + "'", e);
    }
    
    try {
      channel.close();
    } catch (Exception e) {
      logger.log("Failed to close channel for: '" + name + "'", e);
    }
  }
266052
private void releaseAllChannelResources() {
		for (int i = 0; i < this.inputGates.size(); i++) {
			this.inputGates.get(i).releaseAllChannelResources();
		}

		for (int i = 0; i < this.outputGates.size(); i++) {
			this.outputGates.get(i).releaseAllChannelResources();
		}
	}
846724
def close(self):
    """"""
    self.emit(self.generate_epilog(self.settings), dest=ReporterDestination.ERR)
648643
def _recv_close_ok(self, method_frame):
        '''
        
        '''
        self.channel._closed = True
        self.channel._closed_cb()
824928
def mpim_close(self, *, channel: str, **kwargs) -> SlackResponse:
        
        kwargs.update({"channel": channel})
        return self.api_call("mpim.close", json=kwargs)