Hullo JS


import { Duplex } from '@hullo/core'
The class is made mostly for internal purposes, but it's used to make Channel, Atom and Redux, so you should be just aware of this.
Duplex class is a class that joins Observer and Observable interfaces. The outcome solely depends on what Observer and Observables where passed to its constructor as it does not add any logic.
Constructor gets an observable and an observer and returns an instance with next and complete function redirecting calls to observable and subscribe to an observer.
Last modified 3yr ago