Files
mesh-tools/node-tools/internal/bus/export_test.go
T

9 lines
246 B
Go

package bus
// SetTickHook makes the next consumes call f after each idle heartbeat interval was handled; the restore puts it back.
func SetTickHook(f func()) (restore func()) {
old := tickHook
tickHook = f
return func() { tickHook = old }
}