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 } }