SyncDispatcher is a contract.Dispatcher implementation that dispatches events synchronously. SyncDispatcher is safe for concurrent use.
| 16 | // SyncDispatcher is a contract.Dispatcher implementation that dispatches events synchronously. |
| 17 | // SyncDispatcher is safe for concurrent use. |
| 18 | type SyncDispatcher struct { |
| 19 | registry map[interface{}][]contract.Listener |
| 20 | rwLock sync.RWMutex |
| 21 | } |
| 22 | |
| 23 | // Dispatch dispatches events synchronously. If any listener returns an error, |
| 24 | // abort the process immediately and return that error to caller. |
nothing calls this directly
no outgoing calls
no test coverage detected