INNER CODE UNIT · JavaScript

timeout

SoftInstigate/restheart · polyglot/src/js/restheart.js:124

            const timeout = new Promise((resolve, reject) => setTimeout(function() { reject('timeout'); }, 60*1000) );

            Promise.race([ timeout, result ])
                .then(() => out.offer('done'))
                .catch(error => out.offer(new RuntimeException("Error " + error)));
        } catch (error) {
            out.offer(new RuntimeException("Error " + error));
        }
    }
});

// start RESTHeart

const Bootstrapper = Java.type('org.restheart.Bootstrapper');

process.argv.shift();
process.argv.shift();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…