Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jacobbubu/pull-hang
https://github.com/jacobbubu/pull-hang
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jacobbubu/pull-hang
- Owner: jacobbubu
- License: mit
- Created: 2020-03-27T05:29:42.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-09T07:55:35.000Z (over 1 year ago)
- Last Synced: 2024-12-14T01:47:07.589Z (about 1 month ago)
- Language: TypeScript
- Homepage:
- Size: 1.13 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: code-of-conduct.md
Awesome Lists containing this project
README
# @jacobbubu/pull-hang
[![Build Status](https://travis-ci.org/jacobbubu/pull-hang.svg)](https://travis-ci.org/jacobbubu/pull-hang)
[![Coverage Status](https://coveralls.io/repos/github/jacobbubu/pull-hang/badge.svg)](https://coveralls.io/github/jacobbubu/pull-hang)
[![npm](https://img.shields.io/npm/v/@jacobbubu/pull-hang.svg)](https://www.npmjs.com/package/@jacobbubu/pull-hang/)> Written [pull-hang](https://github.com/dominictarr/pull-hang) in TypeScript.
# pull-hang
a pull-stream source that does nothing until you abort it.
``` js
import Hang from 'pull-hang'const hang = Hang()
pull(
hang
pull.collect(function (err) {
//this will never callback, until you call hang(true, cb)
})
)//abort the stream after a timeout.
setTimeout(function () {
hang(true, function () {})
}, 100)```
## License
MIT