Safe Haskell | Safe-Inferred |
---|
- newPushStream :: IO (EventStream a, Event a -> IO ())
- newDispatcher :: ((a -> IO ()) -> IO Disposable) -> IO (EventStream a)
- wrap :: EventSource s => s a -> IO (EventStream a)
Documentation
newPushStream :: IO (EventStream a, Event a -> IO ())Source
newDispatcher :: ((a -> IO ()) -> IO Disposable) -> IO (EventStream a)Source
wrap :: EventSource s => s a -> IO (EventStream a)Source
Makes an observable with a single connection to the underlying EventSource. Automatically subscribes/unsubscribes from EventSource based on whether there are any EventSinks.