MCPcopy
hub / github.com/junegunn/fzf / Set

Method Set

src/util/eventbox.go:39–46  ·  view source on GitHub ↗

Set turns on the event type on the box

(event EventType, value any)

Source from the content-addressed store, hash-verified

37
38// Set turns on the event type on the box
39func (b *EventBox) Set(event EventType, value any) {
40 b.cond.L.Lock()
41 b.events[event] = value
42 if _, found := b.ignore[event]; !found {
43 b.cond.Broadcast()
44 }
45 b.cond.L.Unlock()
46}
47
48// Clear clears the events
49// Unsynchronized; should be called within Wait routine

Callers 9

TestEventBoxFunction · 0.95
LoopMethod · 0.45
scanMethod · 0.45
ResetMethod · 0.45
CancelScanMethod · 0.45
StopMethod · 0.45
startEventPollerMethod · 0.45
finMethod · 0.45
getchMethod · 0.45

Calls

no outgoing calls

Tested by 1

TestEventBoxFunction · 0.76