Skip to content

👜 Callbag operator that maps to inner source, subscribe and emit in order.

Notifications You must be signed in to change notification settings

Andarist/callbag-concat-map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

callbag-concat-map

Callbag operator that maps to inner source, subscribe and emit in order.

Example

import concatMap from 'callbag-concat-map'
import fromEvent from 'callbag-from-event'
import forEach from 'callbag-for-each'
import interval from 'callbag-interval'
import pipe from 'callbag-pipe'
import take from 'callbag-take'

pipe(
  fromEvent(document, 'click'),
  concatMap(() => pipe(interval(1000), take(4))),
  forEach(value => {
    // For every click on the "document" it will emit values 0 to 3 spaced
  }),
)

About

👜 Callbag operator that maps to inner source, subscribe and emit in order.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published