fromObservable

Creates an event containing all items from an Observable.

Arguments

  1. observable (Observable)

Returns

(Event)

Example

import {interval} from 'rxjs'
import {fromObservable} from 'effector'
//emit value in sequence every 1 second
const source = interval(1000)
const event = fromObservable(source)
//output: 0,1,2,3,4,5....
event.watch(console.log)