ready signals that [LocalBackend] has completed the switch to this [nodeBackend] and any pending calls to [nodeBackend.Wait] must be unblocked.
()
| 757 | // ready signals that [LocalBackend] has completed the switch to this [nodeBackend] |
| 758 | // and any pending calls to [nodeBackend.Wait] must be unblocked. |
| 759 | func (nb *nodeBackend) ready() { |
| 760 | nb.mu.Lock() |
| 761 | defer nb.mu.Unlock() |
| 762 | if nb.readyCh != nil { |
| 763 | close(nb.readyCh) |
| 764 | } |
| 765 | } |
| 766 | |
| 767 | // Wait blocks until [LocalBackend] completes the switch to this [nodeBackend] |
| 768 | // and calls [nodeBackend.ready]. It returns an error if the provided context |