signalReady is an internal method to notify that a successful registration is done.
()
| 296 | // signalReady is an internal method to notify that a successful registration |
| 297 | // is done. |
| 298 | func (k *Kite) signalReady() { |
| 299 | k.kontrol.onceRegistered.Do(func() { close(k.kontrol.readyRegistered) }) |
| 300 | } |
| 301 | |
| 302 | // RegisterForever is equivalent to Register(), but it tries to re-register if |
| 303 | // there is a disconnection. The returned error is for the first register |