update
Former-commit-id: bdede6ed1b6f578f2ef046c338caf02d0b29d453 [formerly 7187de361b53e9c8ec121df379b762f2db736ea2] Former-commit-id: 447d58460fbbfd05ffe08428a1288e392637561d
This commit is contained in:
28
_embed/public/ace/demo/kitchen-sink/docs/sjs.sjs
Normal file
28
_embed/public/ace/demo/kitchen-sink/docs/sjs.sjs
Normal file
@@ -0,0 +1,28 @@
|
||||
var { each, map } = require('sjs:sequence');
|
||||
var { get } = require('sjs:http');
|
||||
|
||||
function foo(items, nada) {
|
||||
var component = { name: "Ace", role: "Editor" };
|
||||
console.log("
|
||||
Welcome, #{component.name}
|
||||
".trim());
|
||||
|
||||
logging.debug(`Component added: $String(component) (${component})`);
|
||||
|
||||
console.log(`
|
||||
Welcome, {${function() {
|
||||
return { x: 1, y: "why?}"};
|
||||
}()}
|
||||
`.trim());
|
||||
|
||||
waitfor {
|
||||
items .. each.par { |item|
|
||||
get(item);
|
||||
}
|
||||
} and {
|
||||
var lengths = items .. map(i -> i.length);
|
||||
} or {
|
||||
hold(1500);
|
||||
throw new Error("timed out");
|
||||
}
|
||||
} // Real Tab.
|
||||
Reference in New Issue
Block a user