Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Event ¶
type Event[Arg any] struct { // contains filtered or unexported fields }
func (*Event[Arg]) On ¶
func (e *Event[Arg]) On(cb func(Arg)) EventHandle
type EventHandle ¶
type EventHandle struct {
// contains filtered or unexported fields
}
func (EventHandle) Off ¶
func (h EventHandle) Off()
type Listener ¶
type Listener[Arg any] struct { C <-chan Arg // contains filtered or unexported fields }
func NewListener ¶
type VoidEvent ¶
type VoidEvent = Event[struct{}]
func NewVoidEvent ¶
func NewVoidEvent() *VoidEvent
type VoidListener ¶
type VoidListener = Listener[struct{}]
Click to show internal directories.
Click to hide internal directories.