MCPcopy
hub / github.com/google/mtail / Waker

Interface Waker

internal/waker/waker.go:7–10  ·  view source on GitHub ↗

A Waker is used to signal to idle routines it's time to look for new work.

Source from the content-addressed store, hash-verified

5
6// A Waker is used to signal to idle routines it's time to look for new work.
7type Waker interface {
8 // Wake returns a channel that's closed when the idle routine should wake up.
9 Wake() <-chan struct{}
10}

Callers 8

TestTimedWakerWakesFunction · 0.65
TestTestWakerWakesFunction · 0.65
TestTestWakerTwoWakeesFunction · 0.65
TestTestWakerTwoWakeupsFunction · 0.65
pollLogPatternMethod · 0.65
streamMethod · 0.65
handleConnMethod · 0.65
streamMethod · 0.65

Implementers 3

testWakerinternal/waker/testwaker.go
alwaysWakerinternal/waker/testwaker.go
timedWakerinternal/waker/timedwaker.go

Calls

no outgoing calls

Tested by

no test coverage detected