MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / registerChannel

Method registerChannel

pkg/userinput/userinput.go:59–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57type FrontendProvider struct{}
58
59func (ui *UserInputHandler) registerChannel() (string, chan *UserInputResponse) {
60 ui.Lock.Lock()
61 defer ui.Lock.Unlock()
62
63 id := uuid.New().String()
64 uich := make(chan *UserInputResponse, 1)
65
66 ui.Channels[id] = uich
67 return id, uich
68}
69
70func (ui *UserInputHandler) unregisterChannel(id string) {
71 ui.Lock.Lock()

Callers 1

GetUserInputMethod · 0.80

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected