end-stream

WebJar for end-stream

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

end-stream
Последняя версия

Последняя версия

0.1.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

end-stream
WebJar for end-stream
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/Raynos/end-stream

Скачать end-stream

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/end-stream/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>end-stream</artifactId>
    <version>0.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/end-stream/
implementation 'org.webjars.npm:end-stream:0.1.0'
// https://jarcasting.com/artifacts/org.webjars.npm/end-stream/
implementation ("org.webjars.npm:end-stream:0.1.0")
'org.webjars.npm:end-stream:jar:0.1.0'
<dependency org="org.webjars.npm" name="end-stream" rev="0.1.0">
  <artifact name="end-stream" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='end-stream', version='0.1.0')
)
libraryDependencies += "org.webjars.npm" % "end-stream" % "0.1.0"
[org.webjars.npm/end-stream "0.1.0"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : write-stream jar [0.4.3,0.5)

Модули Проекта

Данный проект не имеет модулей.

end-stream

A stream that ends after computation finishes

Example

When you end this writable stream it will only emit "finish" after it's finished asynchronously writing each chunk you've written to the stream

var stream = EndStream(function write(value, cb) {
    // do something async
    async(value, function (err) {
        // tell cb that your done writing it.
        // Optionally pass it an err as a shorthand for
        // stream.emit("error", err)
        cb(err)
    })
})

stream.write(foo)
stream.write(bar)

stream.end()
stream.on("finish", function () {
    // only called after both foo and bar have been
    // asynchronously written. e.g. persisted to db.
})

Installation

npm install end-stream

Contributors

  • Raynos

MIT Licenced

Версии библиотеки

Версия
0.1.0