fixed readme example identation
This commit is contained in:
1 parent
087bf1952d
commit
4046959d86
1 file changed
+1
-1
@@ -36,7 +36,7 @@ func main() {
|
|||||||
topic := gubgub.NewAsyncTopic[MyMessage]()
|
topic := gubgub.NewAsyncTopic[MyMessage]()
|
||||||
defer topic.Close() // Returns after all messages are delivered
|
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
|
// The AsyncTopic doesn't wait for the subscriber to be registered so, for the purposes of this
|
||||||
// example, we sleep on it.
|
// example, we sleep on it.
|
||||||
|
|||||||
Reference in new issue
Block a user