qss

package
v0.1.152 Latest Latest
Warning

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

Go to latest
Published: May 26, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Void = VoidType{}

Functions

This section is empty.

Types

type Signal

type Signal[T any] interface {
	Connect(func(T))
	Disconnect(Slot[T])
	DisconnectAll()
	Emit(T)
}

func New added in v0.1.41

func New[T any]() Signal[T]

type SignalImpl added in v0.1.41

type SignalImpl[T any] struct {
	// contains filtered or unexported fields
}

func (*SignalImpl[T]) Connect added in v0.1.41

func (s *SignalImpl[T]) Connect(fn func(T))

func (*SignalImpl[T]) Disconnect added in v0.1.41

func (s *SignalImpl[T]) Disconnect(st Slot[T])

func (*SignalImpl[T]) DisconnectAll added in v0.1.41

func (s *SignalImpl[T]) DisconnectAll()

func (*SignalImpl[T]) Emit added in v0.1.41

func (s *SignalImpl[T]) Emit(arg T)

type Slot

type Slot[T any] interface {
	Invoke(T)
}

type SlotFn added in v0.1.41

type SlotFn[T any] func(T)

func (SlotFn[T]) Invoke added in v0.1.41

func (s SlotFn[T]) Invoke(arg T)

type VoidType added in v0.1.41

type VoidType struct{}

Jump to

Keyboard shortcuts

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