StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics
https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
4 years ago | |
---|---|---|
.. | ||
.editorconfig | 4 years ago | |
.gitattributes | 4 years ago | |
.jshintrc | 4 years ago | |
.npmignore | 4 years ago | |
.travis.yml | 4 years ago | |
LICENSE | 4 years ago | |
README.md | 4 years ago | |
index.js | 4 years ago | |
package.json | 4 years ago | |
test.js | 4 years ago |
README.md
Run Async
Utility method to run function either synchronously or asynchronously using the common this.async()
style.
This is useful for library author accepting sync or async functions as parameter. runAsync
will always run them as async method, and normalize the function handling.
Installation
npm install --save run-async
Usage
var runAsync = require('run-async');
// In Async mode:
var asyncFn = function (a) {
var done = this.async();
setTimeout(function () {
done('running: ' + a);
}, 10);
};
runAsync(asyncFn, function (answer) {
console.log(answer); // 'running: async'
}, 'async');
// In Sync mode:
var syncFn = function (a) {
return 'running: ' + a;
};
runAsync(asyncFn, function (answer) {
console.log(answer); // 'running: sync'
}, 'sync');
Licence
Copyright (c) 2014 Simon Boudrias (twitter: @vaxilart)
Licensed under the MIT license.