expand example to demonstrate deregister

This commit is contained in:
onyx-and-iris
2022-06-25 20:36:34 +01:00
parent d7be997fae
commit 25f39fcb6a
2 changed files with 19 additions and 7 deletions

View File

@@ -47,10 +47,10 @@ func newPooler() *Pooler {
func (r *Pooler) runner() {
for r.run {
if pdirty() {
r.Publisher.notify("pdirty")
r.notify("pdirty")
}
if mdirty() {
r.Publisher.notify("mdirty")
r.notify("mdirty")
}
}
}