observable

package
v0.0.12 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Map

func Map[T, V any](obs rx.Observable[T], fn func(T) V) rx.Observable[V]

func New

func New[T any](options ...subject.Option[T]) rx.Observable[T]

Types

type Anonymous

type Anonymous[T any] func(rx.Observer[T]) rx.Subscription

func (Anonymous[T]) Subscribe

func (a Anonymous[T]) Subscribe(obs rx.Observer[T]) rx.Subscription

Subscribe implements rx.Observable.

type Subscriber added in v0.0.10

type Subscriber[T any] interface {
	Next(T)
	Error(error)
	Complete()
}

Jump to

Keyboard shortcuts

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