map-limit

WebJar for map-limit

Лицензия

Лицензия

MIT
Группа

Группа

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

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

map-limit
Последняя версия

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

0.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

map-limit
WebJar for map-limit
Ссылка на сайт

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

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

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

https://github.com/hughsk/map-limit

Скачать map-limit

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

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

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : once jar [1.3.0,1.4)

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

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

map-limit Flattr this!experimental

async.mapLimit's functionality available as a standalone npm module.

I often find myself pulling in async for this method alone, so in the spirit of breaking things into smaller pieces here's that method as a single thing you can require.

Usage

map-limit

mapLimit(arr, limit, iterator, callback)

The same as map only no more than "limit" iterators will be simultaneously running at any time.

Note that the items are not processed in batches, so there is no guarantee that the first "limit" iterator functions will complete before any others are started.

Arguments

  • arr - An array to iterate over.
  • limit - The maximum number of iterators to run at any time.
  • iterator(item, callback) - A function to apply to each item in the array. The iterator is passed a callback(err, transformed) which must be called once it has completed with an error (which can be null) and a transformed item.
  • callback(err, results) - A callback which is called after all the iterator functions have finished, or an error has occurred. Results is an array of the transformed items from the original array.

License

MIT. See LICENSE.md for details.

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

Версия
0.0.1