Skip to content

👜 Callbag operator which converts source to a promise containing last emitted value.

Notifications You must be signed in to change notification settings

Andarist/callbag-to-promise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

callbag-to-promise

Callbag operator which converts source to a promise containing last emitted value.

Example

import interval from 'callbag-interval'
import pipe from 'callbag-pipe'
import takeUntil from 'callbag-take-until'
import toPromise from 'callbag-to-promise'

pipe(
  interval(30),
  takeUntil(interval(200)),
  toPromise,
).then(value => {
  console.log(value) // 5
})

About

👜 Callbag operator which converts source to a promise containing last emitted value.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published