fixed readme example identation

This commit is contained in:
2024-09-09 14:11:10 +01:00
parent 087bf1952d
commit 4046959d86

View File

@@ -36,7 +36,7 @@ func main() {
topic := gubgub.NewAsyncTopic[MyMessage]()
defer topic.Close() // Returns after all messages are delivered
_ := topic.Subscribe(gubgub.Forever(consumer))
_ := topic.Subscribe(gubgub.Forever(consumer))
// The AsyncTopic doesn't wait for the subscriber to be registered so, for the purposes of this
// example, we sleep on it.