comment out example scripts

This commit is contained in:
rolux 2012-06-24 15:34:19 +02:00
parent 19afdd8bea
commit 8312105427

View file

@ -92,17 +92,17 @@
callback <f> Callback function callback <f> Callback function
ms <n> Number of milliseconds after which to insert a `setTimeout` call ms <n> Number of milliseconds after which to insert a `setTimeout` call
<script> <script>
var time = +new Date(); // var time = +new Date();
Ox.nonblockingMap( // Ox.nonblockingMap(
Ox.range(1000000), // Ox.range(1000000),
function (value, index, array) { // function (value, index, array) {
return +new Date() - time; // return +new Date() - time;
}, // },
function(results) { // function(results) {
Ox.print(results.length); // Ox.print(results.length);
}, // },
1000 // 1000
); // );
</script> </script>
> Ox.nonblockingMap(Ox.range(100000), Ox.identity, function(r) { Ox.test(r.length, 100000); }) > Ox.nonblockingMap(Ox.range(100000), Ox.identity, function(r) { Ox.test(r.length, 100000); })
undefined undefined
@ -161,18 +161,18 @@
callback <f> Callback function callback <f> Callback function
results <a|o|s> Results results <a|o|s> Results
<script> <script>
var time = +new Date(); // var time = +new Date();
Ox.parallelMap( // Ox.parallelMap(
Ox.range(10), // Ox.range(10),
function (value, index, array, callback) { // function (value, index, array, callback) {
setTimeout(function() { // setTimeout(function() {
callback(+new Date() - time); // callback(+new Date() - time);
}, Ox.random(1000)); // }, Ox.random(1000));
}, // },
function(results) { // function(results) {
Ox.print(results); // Ox.print(results);
} // }
); // );
</script> </script>
> Ox.parallelMap(Ox.range(100000), Ox.noop, function(r) { Ox.test(r.length, 100000); }) > Ox.parallelMap(Ox.range(100000), Ox.noop, function(r) { Ox.test(r.length, 100000); })
undefined undefined
@ -229,18 +229,18 @@
callback <f> Callback function callback <f> Callback function
results <a|o|s> Results results <a|o|s> Results
<script> <script>
var time = +new Date(); // var time = +new Date();
Ox.serialMap( // Ox.serialMap(
Ox.range(10), // Ox.range(10),
function (value, index, array, callback) { // function (value, index, array, callback) {
setTimeout(function() { // setTimeout(function() {
callback(+new Date() - time); // callback(+new Date() - time);
}, Ox.random(1000)); // }, Ox.random(1000));
}, // },
function(results) { // function(results) {
Ox.print(results); // Ox.print(results);
} // }
); // );
</script> </script>
> Ox.serialMap(Ox.range(1000), Ox.noop, function(r) { Ox.test(r.length, 1000); }) > Ox.serialMap(Ox.range(1000), Ox.noop, function(r) { Ox.test(r.length, 1000); })
undefined undefined