1. 首页
  2. 数据库
  3. 其它
  4. aww:Web Workers的异步Iterables接口 源码

aww:Web Workers的异步Iterables接口 源码

上传者: 2021-02-08 09:34:34上传 ZIP文件 12.33KB 热度 8次
w Web Workers的异步Iterables接口 这是概念证明库,可与Web Worker进行异步迭代。 尚不支持错误处理。 npm i -S aww 异步迭代时,请勿使用包装程序的postMessage方法:请使用reply方法。 如何遍历调用者的传入数据(从工作人员角度) worker.js import { AISource } from 'aww' ; const delay = ( ms , v ) => new Promise ( res => setTimeout ( res , ms , v ) ) ; ; ( async ( ) => { // will
下载地址
用户评论