Documentation ¶
Index ¶
- type AnonymousObservable
- type AnonymousObservable2
- type AnonymousObserver
- type AnonymousObserver2
- type CompletionObserver
- type ErrorObserver
- type NextObserver
- type NextObserver2
- type Observable
- type Observable2
- type Observer
- type Observer2
- type Signal
- type Signaler
- type Subject
- type Subject2
- type Subscription
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 AnonymousObserver2 ¶ added in v0.0.24
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 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()
Click to show internal directories.
Click to hide internal directories.