direct

package
v0.0.0-...-3bfe646 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

package direct implements a synchronous event dispatcher

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dispatcher

type Dispatcher struct {
	// contains filtered or unexported fields
}

Dispatcher implements event dispatcher that dispatches events without intermediate buffering. It requires that the receiving side is servicing the notification channel otherwise it will block

func New

func New() *Dispatcher

New creates a new event dispatcher

func (*Dispatcher) Chan

func (r *Dispatcher) Chan() <-chan *installpb.ProgressResponse

Chan returns the channel that receives progress updates

func (*Dispatcher) Close

func (r *Dispatcher) Close()

Close stops the dispatcher internal processes Implements EventDispatcher

func (*Dispatcher) Send

func (r *Dispatcher) Send(event dispatcher.Event)

Send publishes the specified event. Implements EventDispatcher

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL