package
Version:
v0.4.0
Opens a new window with list of versions in this module.
Published: Apr 18, 2026
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package membus provides an in-memory implementation of eventbus.EventBus.
New returns a new in-memory EventBus.
Bus is an in-memory implementation of EventBus.
Publish sends a message to all subscribers.
Shutdown closes the job channel and waits for all workers to finish.
Subscribe registers a handler for broadcast messages.
Wait blocks until all pending messages are processed.
Option configures the bus.
WithWorkerPool sets the number of worker goroutines for processing events.
Default is 100 workers. Set to 0 to use unbounded goroutines.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.