Discover Packages
github.com/AlexGustafsson/cupdate
internal
events
package
Version:
v0.24.2
Opens a new window with list of versions in this module.
Published: Feb 2, 2026
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Hub[T any ] struct {
}
Hub is an event hub allowing broadcasting of events to subscribers.
Broadcast an event to all subscribers synchronously.
Returns an error if the context expires before all subscribers were invoked.
Subscribe to events.
Returns a channel which will receives all broadcast events.
The channel is closed whenever the context expires.
Subscribers should receive events from the channel in a timely manner.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.