rx

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2025 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 AnonymousObservable added in v0.0.24

type AnonymousObservable[T any] interface {
	~func(Observer[T]) Subscription
}

type AnonymousObservable2 added in v0.0.24

type AnonymousObservable2[K, V any] interface {
	~func(Observer2[K, V]) Subscription
}

type AnonymousObserver added in v0.0.10

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

type AnonymousObserver2 added in v0.0.24

type AnonymousObserver2[K, V any] interface {
	~func(K, V) | ~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 NextObserver2 added in v0.0.24

type NextObserver2[K, V any] interface {
	OnNext(K, V)
}

type Observable

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

type Observable2 added in v0.0.24

type Observable2[K, V any] interface {
	Subscribe(Observer2[K, V]) Subscription
}

type Observer

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

type Observer2 added in v0.0.24

type Observer2[K, V any] interface {
	NextObserver2[K, V]
	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 Subject2 added in v0.0.24

type Subject2[K, V any] interface {
	Observer2[K, V]
	Observable2[K, V]
}

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