uupaa.thread.js
Version:
Thread and ThreadPool functions.
17 lines (14 loc) • 450 B
JavaScript
importScripts("../lib/WebModule.js");
importScripts("../lib/ThreadProxy.js");
var proxy = new WebModule.ThreadProxy(function(args, event) {
if (args === undefined ||
args === 0 ||
args === "" ||
(Array.isArray(args) && args.length === 0)) {
;
} else {
throw new Error("bad type");
}
}, function closeRequestHandler(yes, no) {
yes(); // [5]
});