package
0.0.0-20191201205449-f379a713d0c2
Repository: https://github.com/rjected/lit.git
Documentation: pkg.go.dev

# README

eventbus

This is a small event bus library. You should be able to figure our how to use it just by looking at bus.go and event.go.

# Functions

NewEventBus creates a new event bus without any event handlers.

# Constants

EFLAG_ASYNC means thtat the event will be processed asychronously.
Don't use this directly!.
EFLAG_NORMAL means this is a normal sync event.
EFLAG_UNCANCELLABLE means that the event cannot be cancelled.
EHANDLE_CANCEL means that the event should be cancelled.
EHANDLE_OK means that the event should not be cancelled.

# Structs

An EventBus takes events and forwards them to event handlers matched by name.

# Interfaces

An Event is a description of "something" that has taken place.

# Type aliases

EventHandleResult is a flag field to represent certain things.