rx

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnonymousObserver added in v0.0.10

type AnonymousObserver[T any] interface {
	~func(T) | ~func(error) | ~func()
}

type CompletionObserver

type CompletionObserver interface {
	OnComplete()
}

type ErrorObserver

type ErrorObserver interface {
	OnError(error)
}

type NextObserver

type NextObserver[T any] interface {
	OnNext(T)
}

type Observable

type Observable[T any] interface {
	Subscribe(Observer[T]) Subscription
}

type Observer

type Observer[T any] interface {
	NextObserver[T]
	ErrorObserver
	CompletionObserver
}

type Signal added in v0.0.10

type Signal[T any] interface {
	Signaler[T]
	Set(T)
	Subscribe(func(T))
}

type Signaler added in v0.0.10

type Signaler[T any] interface {
	Get() T
}

type Subject

type Subject[T any] interface {
	Observer[T]
	Observable[T]
}

type Subscription

type Subscription func()

func (Subscription) Unsubscribe

func (s Subscription) Unsubscribe()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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