problem: close channel to unsub is confusing

This commit is contained in:
stanstacks
2022-12-23 10:03:40 +08:00
parent 6f1c60f66c
commit c94ae093c1
2 changed files with 3 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ go func() {
}()
time.Sleep(5 * time.Second)
close(unsub)
unsub()
```
### Publishing an event