All Projects → deep-rain → Thread

deep-rain / Thread

Licence: apache-2.0
Simply, lightweight and easy multi-thread JavaScript library

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Thread

Flexsearch
Next-Generation full text search library for Browser and Node.js
Stars: ✭ 8,108 (+47594.12%)
Mutual labels:  web-worker, javascript-library
Chromesnifferplus
🔍 Sniff web framework and javascript libraries run on browsing website.
Stars: ✭ 788 (+4535.29%)
Mutual labels:  javascript-library
Pixi Particles
A particle system for PixiJS
Stars: ✭ 555 (+3164.71%)
Mutual labels:  javascript-library
Rando.js
The world's easiest, most powerful random function.
Stars: ✭ 659 (+3776.47%)
Mutual labels:  javascript-library
Toastify Js
Pure JavaScript library for better notification messages
Stars: ✭ 570 (+3252.94%)
Mutual labels:  javascript-library
Modernizr
Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser.
Stars: ✭ 25,103 (+147564.71%)
Mutual labels:  javascript-library
Wind Js
An demo animation of wind on a Canvas layer in the JSAPI
Stars: ✭ 548 (+3123.53%)
Mutual labels:  javascript-library
Infinite Ajax Scroll
Turn your existing pagination into infinite scrolling pages with ease
Stars: ✭ 804 (+4629.41%)
Mutual labels:  javascript-library
Nativeshare
NativeShare是一个整合了各大移动端浏览器调用原生分享的插件
Stars: ✭ 751 (+4317.65%)
Mutual labels:  javascript-library
Presenta Lib
A javascript library to build expressive web presentations in seconds.
Stars: ✭ 614 (+3511.76%)
Mutual labels:  javascript-library
Ua Parser Js
UAParser.js - Detect Browser, Engine, OS, CPU, and Device type/model from User-Agent data. Supports browser & node.js environment.
Stars: ✭ 6,421 (+37670.59%)
Mutual labels:  javascript-library
Gojs
JavaScript diagramming library for interactive flowcharts, org charts, design tools, planning tools, visual languages.
Stars: ✭ 5,739 (+33658.82%)
Mutual labels:  javascript-library
Drawflow
Simple flow library 🖥️🖱️
Stars: ✭ 730 (+4194.12%)
Mutual labels:  javascript-library
Darken
🌑 Dark mode made easy
Stars: ✭ 571 (+3258.82%)
Mutual labels:  javascript-library
Trip.js
🚀 Trip.js is a plugin that can help you customize a tutorial trip easily with more flexibilities.
Stars: ✭ 789 (+4541.18%)
Mutual labels:  javascript-library
Typed Graphqlify
Build Typed GraphQL Queries in TypeScript. A better TypeScript + GraphQL experience.
Stars: ✭ 553 (+3152.94%)
Mutual labels:  javascript-library
Jcanvas
A jQuery plugin that makes the HTML5 canvas easy to work with.
Stars: ✭ 612 (+3500%)
Mutual labels:  javascript-library
Progressively
A JavaScript library to load images progressively 🌇
Stars: ✭ 691 (+3964.71%)
Mutual labels:  javascript-library
Gradientify
Create beautiful, animated gradients with ease. This JS library provides you with an easy-to-use API to create and put animated gradients wherever you want on your website.
Stars: ✭ 16 (-5.88%)
Mutual labels:  javascript-library
Spotlight
Web's most easy to integrate lightbox gallery library. Super-lightweight, outstanding performance, no dependencies.
Stars: ✭ 799 (+4600%)
Mutual labels:  javascript-library

thread.js

Simple, lightweight and easy multi-thread JavaScript library

Official WebSite

Usage

a simple.

var thread = new Thread(function(){
  return "hello Thread.js";
});

thread.once().done(function(d){
  console.log(d);    // -> hello Thread.js
});

with arguments.

var thread = new Thread(function(a, b){
  return a + b;
});

thread.once(1, 2).done(function(d){
  console.log(d);    // -> 3
});

with progress.

var thread = new Thread(function(){
  notify("progress");
  return "hello Thread.js";
});

thread.once().progress(function(d){
  console.log(d);    // -> progress
}).done(function(d){
  console.log(d);    // -> hello Thread.js
});

with other libraries.

var thread = new Thread(function(){
  example();
}, [
  "http://example.com/path/to/example.js",
  "http://example.com/path/to/example2.js"
]);

thread.once().progress(function(d){
  // ...
});

LICENSE

Apache-2.0

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].