pause

2018-11-09 admin

pause是什么

什么是pause,Pause a stream's data events

pause使用教程帮助文档

pause

NPM Version NPM Downloads Node.js Version Build Status Test Coverage

Pause a stream’s data events

Installation

$ npm install pause

API

var pause = require('pause')

handle = pause(stream)

Pause the data events on a stream and return a handle to resume or end the stream.

handle.end()

Dispose of the handle. This does not end the stream, but it simply discards the event collection, making handle.resume() a no-op.

handle.resume()

Resume the stream by re-emitting all the data events in the same order, followed by an end event, if that was emitting during the pause.

License

MIT

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-44949.html

文章标题:pause

相关文章
Audio paused 属性
<p><a href=“dom-obj-audio.html”><img class=“navup” src="/public/upload/imgs/up.gif" alt=“Audio ...
2019-03-02
onpause 事件
<p><a href=“dom-obj-event.html”><img class=“navup” src="/public/upload/imgs/up.gif" alt=“事件对象参考...
2019-03-02
pause-promise
pause-promise是什么 什么是pause-promise,simple promise wrapper around setImmediate, setTimeout pause-promise官网:官网 pause-promi...
2019-03-08
Audio pause() 方法
<p><a href=“dom-obj-audio.html”><img class=“navup” src="/public/upload/imgs/up.gif" alt=“Audio ...
2019-03-02
HTML 音频/视频 DOM pause() 方法
<p><a href=“ref-av-dom.html”><img class=“navup” src="/public/upload/imgs/up.gif" alt=“HTML audi...
2019-04-01
HTML 音频/视频 DOM paused 属性
<p><a href=“ref-av-dom.html”><img class=“navup” src="/public/upload/imgs/up.gif" alt=“HTML audi...
2019-04-01
HTML Audio/Video DOM pause 事件
<p><a href=“ref-av-dom.html”><img class=“navup” src="/public/upload/imgs/up.gif" alt=“HTML audi...
2019-04-01
回到顶部