singlefile
Ensures that your async function runs to completion before it is executed again
// example of loading and caching a config filevar singlefile = ;var _config = null;var getConfig = ; // let's use it;// another call happening at the same time; /** * LOG OUTPUT * getConfig called * Setting config file * got config 1 * getConfig called * got config 2 */