This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author {Ashish Kumar} | |
* @param {function} cb | |
* @return {Class} MAX_COUNT | |
* ParallelQueue will execute 5 OR MAX_COUNT process in parallel. | |
* It will always make sure that the execution queue will always have 5 process to execute. | |
*/ | |
class ParallelQueue { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//=================================================================================================================================== | |
// | |
// ##### ##### ## ##### ##### ## ###### ## ## ##### ## ## ##### ## ## ###### ##### ## ## #### | |
// ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #### ## ## ## ## ## ## ## | |
// ##### ##### ## ## ## ##### ## ## #### ##### ## ## ##### ## ## ## ## ##### ## ## ### | |
// ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ### ## ## ## ## ## ## | |
// ## ## ## ## ##### ## ## ## ## ## ##### ### ##### ## ## ## ##### ##### #### | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const data = module.exports = { | |
obj: { | |
"coupon_codes": [{ | |
"id": 1, | |
"code": "BOX8LOVE", | |
"type": "Percentage", | |
"value": 10, | |
"cashback_value": 0, | |
"start_date": "2015-07-01", | |
"end_date": "2019-12-31", |