lileio / pubsub

A Publish & Subscribe library, with pluggable providers and middleware for Golang
MIT License
137 stars 23 forks source link

Updated the memory provider to act like a very basic queue #30

Open DMXRoid opened 2 years ago

DMXRoid commented 2 years ago

In the current implementation, the memory provider will just loop through a map of messages once when there's a new Subscriber. This expands the MemoryProvider out, making it a little more consistent with the code style of the others (a constructor, actually doing stuff in the shutdown, etc), and adds some more queue-like functionality using some channels and goroutines.