MCPcopy Index your code
hub / github.com/koding/kite / WaitRegister

Method WaitRegister

kontrol/helper_test.go:141–148  ·  view source on GitHub ↗
(timeout time.Duration)

Source from the content-addressed store, hash-verified

139}
140
141func (hk *HelloKite) WaitRegister(timeout time.Duration) (*protocol.RegisterResult, error) {
142 select {
143 case reg := <-hk.regs:
144 return reg, nil
145 case <-time.After(timeout):
146 return nil, fmt.Errorf("waiting for register timed out after %s", timeout)
147 }
148}
149
150func (hk *HelloKite) onTokenExpire() {
151 hk.toks <- struct{}{}

Callers 3

TestUpdateKeysFunction · 0.95
TestMultipleRegisterFunction · 0.95
RegisterMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected