Module

Control.Observable.Class

Package
purescript-observable-classy
Repository
Risto-Stevcev/purescript-observable-classy

#Listeners Source

type Listeners a = { complete :: Unit -> Unit, error :: Error -> Unit, next :: a -> Unit }

#Subscription Source

newtype Subscription

Constructors

#Observable Source

class Observable o  where

Purescript doesn't support polyvariadic functions, so of (make) takes a single argument instead . If more values need to be supplied, use fromFoldable and provide an array of values. In the spec, from can take an Observable or an Iterable. This is split into two functions fromFoldable and fromObservable. All Iterable structures are Foldable, so Foldable is used instead

Members