async:从功能上使用异步代码

时间:2024-06-05 15:26:00
【文件属性】:

文件名称:async:从功能上使用异步代码

文件大小:9KB

文件格式:ZIP

更新时间:2024-06-05 15:26:00

rxjs stream async frp frp-library

异步的 该库允许您包装异步生成器并使用功能方法使用它。 例如: import { wrap } from './async' ; // genNums(9) is an async generator that yields 9 numbers (0 to 8), // a number is generated every few ms // checkout implementation in tests it ( 'should allow to buffer' , async ( ) => { expect ( await wrap ( genNums ( 9 ) ) . filter ( x => x % 2 === 0 ) . buffer ( 2 ) . take ( 2 ) ) . toEqual ( [ [ 0 ,


【文件预览】:
async-master
----.gitignore(74B)
----tsconfig.json(248B)
----README.md(978B)
----package.json(2KB)
----tslint.json(400B)
----TODO.md(177B)
----src()
--------buffer.ts(409B)
--------async.spec.ts(2KB)
--------async.ts(3KB)
--------bufferByTime.ts(774B)
--------do.ts(142B)
--------onEvent.ts(391B)
--------index.ts(1KB)
--------AggVal.ts(422B)
--------style.css(26B)
--------timeThrottle.ts(750B)
--------throttle.ts(427B)
----.babelrc(25B)
----webpack.config.js(1KB)

网友评论