MCPcopy
hub / github.com/mum4k/termdash / processEvents

Method processEvents

termdash.go:306–321  ·  view source on GitHub ↗

processEvents processes terminal input events. This is the body of the event collecting goroutine.

(ctx context.Context)

Source from the content-addressed store, hash-verified

304// processEvents processes terminal input events.
305// This is the body of the event collecting goroutine.
306func (td *termdash) processEvents(ctx context.Context) {
307 defer close(td.exitCh)
308
309 for {
310 ev := td.term.Event(ctx)
311 if ev != nil {
312 td.eds.Event(ev)
313 }
314
315 select {
316 case <-ctx.Done():
317 return
318 default:
319 }
320 }
321}
322
323// start starts the terminal dashboard. Blocks until the context expires or
324// until stop() is called.

Callers 2

startMethod · 0.95
NewControllerFunction · 0.80

Calls 2

DoneMethod · 0.80
EventMethod · 0.65

Tested by

no test coverage detected