![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
vanilla-queues-js
Advanced tools
create async jobs in queues/threads this can be handle in node, typescript, angular, react, vue, and all js based framework
create and manage async jobs queues/threads in core javascript or Vanilla JS it can be use any javascript framework like ReactJs, Angular React-Native and VueJs
Please see in the EXAMPLE / DEMO
import * as vanillaQueuesJs from "vanilla-queues-js";
// creating object
let vanilaQue = new vanillaQueuesJs.VanillaQueues<number>(5);
//set your jobs
for (let index = 0; index < 100; index++) {
//Add into stack
vanilaQue.addJob((data, counter) => {
//AJAX CAMOUFLAGE (WAIT FOR RANDOM 1 to 3 SEC)
setTimeout(() => {
console.log(data, "------> executed ---->", counter);
//------
vanilaQue.jobDone();//MARK AS SINGLE JOB IS DONE AFTER CALL "jobDone()" next job is start
//-----
}, Math.floor(Math.random() * 3000) + 1000);
}, index);
}
//When all jobs are done this method notify you...
vanilaQue.isDone(() => {
console.log("All Jobs are done...");
});
// Execute threads ....
vanilaQue.runJobs();
<script src="../dist/vanilla-queues.js"></script>
<script>
// creating object
var vanilaQue = new VanillaQueues<number>(5);
//set your jobs
for (var index = 0; index < 100; index++) {
//Add into stack
vanilaQue.addJob(function(data, counter){
//AJAX CAMOUFLAGE (WAIT FOR RANDOM 1 to 3 SEC)
setTimeout(function(){
console.log(data, "------> executed ---->", counter);
vanilaQue.jobDone();
}, Math.floor(Math.random() * 3000) + 1000);//Math.floor(Math.random() * 2000) +
}, index);
}
vanilaQue.isDone(function() {
console.log("oeeeeee done...");
});
// Execute threads ....
vanilaQue.runJobs();
</script>
var vanilaQue = new VanillaQueues<number>(5);
PAUSE
- pause all task and return callback function. vanilaQue.pause(()=>console.log("pause successfully...") ),
STOP
- Stop all task.vanilaQue.stop()
RESUME
- Resume pause task, note: only pause tast are only to be resume. vanilaQue.resume()
Laps Notification
- Notify by callback user define number of jobs complete. vanilaQue.achiveLapsNotification(CALLBACK,10)
"10" means notify you when every 10 jobs are done.vanilaQue.pause(()=>console.log("pause successfully...");
Notify by callback user define number of jobs complete. vanilaQue.achiveLapsNotification(CALLBACK,10)
"10" means notify you when every 10 jobs are done.
vanilaQue.achiveLapsNotification(()=>{
console.log("lap achived...");
},10)
FAQs
create async jobs in queues/threads this can be handle in node, typescript, angular, react, vue, and all js based framework
We found that vanilla-queues-js 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.