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 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 Subject ¶
type Subject[T any] interface { Observer[T] Observable[T] }
type Subscription ¶
type Subscription func()
func (Subscription) Unsubscribe ¶
func (s Subscription) Unsubscribe()
Click to show internal directories.
Click to hide internal directories.