Changeset 180 in code for trunk/upstream.go


Ignore:
Timestamp:
Mar 27, 2020, 11:54:42 PM (5 years ago)
Author:
contact
Message:

Document functions safe to call from any goroutine

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/upstream.go

    r179 r180  
    146146}
    147147
     148// Close closes the connection. It is safe to call from any goroutine.
    148149func (uc *upstreamConn) Close() error {
    149150        if uc.isClosed() {
     
    13921393}
    13931394
     1395// SendMessage queues a new outgoing message. It is safe to call from any
     1396// goroutine.
    13941397func (uc *upstreamConn) SendMessage(msg *irc.Message) {
    13951398        uc.outgoing <- msg
Note: See TracChangeset for help on using the changeset viewer.