Documentation
¶
Overview ¶
Package eventbus provides a central message hub for application events and updates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventBus ¶
type EventBus struct {
// contains filtered or unexported fields
}
EventBus facilitates bi-directional communication between the UI and Workflow. It buffers updates to the UI and actions to the workflow.
func (*EventBus) Close ¶
func (b *EventBus) Close()
Close signals that no more updates or actions will be sent. It blocks until all already-buffered updates have been delivered.
func (*EventBus) SendAction ¶
SendAction queues an action for the workflow. It never blocks.
func (*EventBus) SendUIUpdate ¶
SendUIUpdate queues an update for the UI. It never blocks.
func (*EventBus) WorkflowActions ¶
WorkflowActions returns the channel for receiving workflow actions.
Click to show internal directories.
Click to hide internal directories.