Created
January 9, 2023 13:01
-
-
Save glober-vaibhav/8e4376767a5196b267a431f95f1c6e9c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Agent is a simple pub/sub agent | |
type Agent struct { | |
mu sync.Mutex | |
subs map[string][]chan string | |
quit chan struct{} | |
closed bool | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment