code: func (n *Node) Wait() {
  	n.lock.RLock()
  	if n.server == nil {
  		n.lock.RUnlock()
  		return
  	}
  	stop := n.stop
  	n.lock.RUnlock()
  
  	<-stop
  }
docs: // Wait blocks the thread until the node is stopped. If the node is not running
  // at the time of invocation, the method immediately returns.