Licence
MIT
Version
0.1.0
Deps
0
Size
4 kB
Vulns
0
Weekly
0
@systemfsoftware/rx-effect
fromObservable turns an Observable<A> into a typed Stream<A, E> — values, errors, and completion map onto Effect's channels, with backpressure and proper interruption (unsubscribing the source when the stream is interrupted).
import { fromObservable } from '@systemfsoftware/rx-effect'
import { Stream } from 'effect'
import { interval } from 'rxjs'
const stream = fromObservable(interval(1000)) // Stream<number>Install
pnpm add @systemfsoftware/rx-effect
effectandrxjs(v7) are peer dependencies — you bring your own.