Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
For proper coding and to run sequential asynchronous function.
$ npm install jueue
var jueue = require('jueue');
// To set jueue options.
jueue.set({
running: true,
pauseTime: 1000
});
// or
jueue.set("running", true);
jueue.set("pauseTime", 1000);
// No settings needed at the start. Because all settings have defaults.
// To use queue for functions.
jueue.get(
function (e) {
//...
e.next();
},
function (e) {
//...
// If there is an error
e.throw(error);
// or complete jueue.
e.done(); // this calls then function callback
}
).then(function (result) {
// Write function to manage done.
}).catch(function(err) {
// Write function to catch error.
});
var jueue = require('jueue');
jueue.get(
function (e) {
//...
e.next({ name: "test", model: "test", args: [1, 2] });
},
function (e) {
//...
e.next();
},
function test(e, one, two) {
var modelValue = e.model;
//...
}
);
jueue.set([options])
or jueue.set(key, value)
Parameters:
[options]
: Optional object containing any of the following properties:
running
: Indicates the working status of all queues. Default value: true
pauseTime
: Indicates the duration of next pause control. Default value: 1000
Or
key
: String key names of the above properties (running or pauseTime).
value
: Value of the above properties (running or pauseTime).
jueue.get(list)
or jueue.get()
Parameters:
[list]
: Required array of functions. For queue.Or
[arguments]
: list may write like arguments.jueue.promise(list)
or jueue.promise()
Used to get instance of promise for jueue.
Parameters:
[list]
: Required array of functions. For queue.Or
[arguments]
: list may write like arguments.jueue.catch(ecb)
Parameters:
ecb
: Optional error function. Used to catch errors.jueue.then(cb)
Parameters:
cb
: Optional done function. Used to catch done.e.next([options])
or e.next(step)
or e.next(name)
Parameters:
[options]
: Optional object containing any of the following properties:
step
: The index of the function you want to go directly.
name
: The name of the function you want to go directly.
model
: The object model you want to send to the next function.
args
: The arguments you want to send to the next function.
Or
step
: The index of the function you want to go directly. options may write like step.Or
name
: The name of the function you want to go directly. options may write like name.e.throw(err)
Parameters:
err
: It must be instance of Error.e.done(result)
Parameters:
result
: Object that you want to send.This example shows the most basic way of usage.
This software is free to use under the JosephUz. See the LICENSE file for license text and copyright information.
FAQs
For proper coding and to run sequential asynchronous function.
We found that jueue demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.