function-loop

WebJar for function-loop

License

License

ISC
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

function-loop
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

function-loop
WebJar for function-loop
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/isaacs/function-loop

Download function-loop

How to add to project

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

function-loop

Run a list of functions in order in a given object context. The functions can be callback-taking or promise-returning.

This module is zalgo-exposing, meaning that synchronous calls to the cb functions will result in a sync call to the supplied cb, and async calls will result in the cb being called asynchronously. It does not artificially defer if callbacks are called synchronously.

API

loop(context, functionList, doneCallback, errorCallback)

Run all the functions in the context of the context object, and then call the doneCallback or call the errorCallback if there are any errors.

Versions

Version
1.0.2