没有合适的资源?快使用搜索试试~ 我知道了~
a-stream:用于管理异步事件的库
共52个文件
ts:35个
xml:9个
json:3个
需积分: 5 0 下载量 71 浏览量
2021-04-11
03:28:43
上传
评论
收藏 126KB ZIP 举报
温馨提示
流 基于Promise的库,用于构建异步事件流。 虽然这是一个通用库,但该API旨在简化Web开发中常见的异步挑战,例如: :globe_showing_Americas: 全球/本地状态管理 :hourglass_done: 跟踪事件的未决状态和错误 :vertical_traffic_light: 防抖动和限速事件 :bomb: 取消事件/处理程序 :crystal_ball: 处理无法解决的事件 :couple_with_heart: 聚集事件流并对变化做出React :ring: 与使用Promises的代码/库集成 AStream包含TypeScript类型定义,并且具有0个依存关系。 可以将其导入为ES模块,CommonJS模块(节点)或浏览器中的脚本标签。 例子 import { AStream } from 'a-stream' ; const searchItems = new AStream ( event => event . target . value ) . debounce ( 300 ) . filter ( ( text
资源推荐
资源详情
资源评论
收起资源包目录
a-stream-master.zip (52个子文件)
a-stream-master
rollup.config.js 643B
src
promise-util
Deferred.ts 666B
event-handlers
latest-event-handler.ts 2KB
custom-event-handler.ts 730B
base-event-handler.ts 1019B
canceled-event-handler.ts 768B
error-event-handler.ts 625B
base-adapter-event-handler.ts 389B
filter-event-handler.ts 999B
pending-changes-event-handler.ts 2KB
debounce-event-handler.ts 1KB
nodes
source-node.ts 2KB
standalone-input-connection-mgr.ts 463B
input-connection-mgr.interface.ts 187B
parent-input-connection-mgr.ts 1000B
node.ts 11KB
index.ts 123B
streams
run-options.ts 182B
base-a-stream.ts 9KB
readable-a-stream.interface.ts 2KB
a-stream.ts 2KB
promise-types.d.ts 251B
errors
canceled-a-stream-event.ts 648B
.idea
misc.xml 262B
compiler.xml 180B
a-stream.iml 513B
jsLibraryMappings.xml 187B
encodings.xml 159B
inspectionProfiles
Project_Default.xml 621B
modules.xml 268B
codeStyles
codeStyleConfig.xml 154B
runConfigurations
Test__Watch_.xml 658B
vcs.xml 180B
tsconfig.json 445B
README.md 1KB
docs
global-state-management.md 1KB
tests
node.test.ts 14KB
memory-leaks.test.ts 3KB
pending-changes-stream-event-handler.test.ts 4KB
canceled-event-handler.test.ts 1KB
debounce-event-handler.test.ts 2KB
child-node.test.ts 2KB
error-event-handler.test.ts 1KB
util
clock-mock.ts 612B
stream-util.ts 612B
a-stream.test.ts 420B
latest-event-handler.test.ts 2KB
custom-event-handler.test.ts 1KB
filter-event-handler.test.ts 2KB
.gitignore 55B
package-lock.json 361KB
package.json 1KB
共 52 条
- 1
资源评论
羊欲穷
- 粉丝: 88
- 资源: 4591
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功