This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(window, document, undefined) { | |
var $table = document.getElementById('field'); | |
function columnClick(col) { | |
} | |
function buildTable() { | |
var $row, $col, i, j; | |
for (i = 0; i < ROWS; i++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var chainGang = require('chain-gang'); | |
var queue = chainGang.create(); | |
var longTask = function(text) { | |
return function(worker) { | |
setTimeout(function() { | |
console.log(text); | |
worker.finish(); | |
}, 1000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var chainGang = require('chain-gang'); | |
var chain = chainGang.create(); | |
var task = function(worker) { | |
worker.finish(); | |
} | |
chain.add(task, function(err) { | |
console.log('Never called'); |
NewerOlder