【文件属性】:
文件名称:callbag-throw-error::handbag:立即发出错误的Callbag源工厂
文件大小:4KB
文件格式:ZIP
更新时间:2021-04-30 08:19:39
callbag callbags JavaScript
Callbag投掷错误
立即发出错误的Callbag源工厂。
例子
import concat from 'callbag-concat'
import of from 'callbag-of'
import pipe from 'callbag-pipe'
import subscribe from 'callbag-subscribe'
import throwError from 'callbag-throw-error'
pipe (
concat ( of ( 1 , 2 , 3 ) , throwError ( 'err' ) )
subscribe ( {
next : value => {
console . log ( value ) // 1 2 3
} ,
error : err => {
console . l
【文件预览】:
callbag-throw-error-master
----.travis.yml(39B)
----rollup.config.js(347B)
----.lintstagedrc(223B)
----.babelrc.js(240B)
----package.json(1KB)
----__tests__()
--------index.js(1KB)
----src()
--------index.js(272B)
----.gitignore(18B)
----.npmrc(19B)
----README.md(476B)