observable

package
v0.0.0-...-dea31c1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Iterable

type Iterable <-chan any

type Observable

type Observable struct {
	// contains filtered or unexported fields
}

func NewObservable

func NewObservable(any Iterable) *Observable

func (*Observable) Subscribe

func (o *Observable) Subscribe() (Subscription, error)

func (*Observable) UnSubscribe

func (o *Observable) UnSubscribe(sub Subscription)

type Subscriber

type Subscriber struct {
	// contains filtered or unexported fields
}

func (*Subscriber) Close

func (s *Subscriber) Close()

func (*Subscriber) Emit

func (s *Subscriber) Emit(item any)

func (*Subscriber) Out

func (s *Subscriber) Out() Subscription

type Subscription

type Subscription <-chan any

Jump to

Keyboard shortcuts

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