plugins
This commit is contained in:
		| @ -3,4 +3,8 @@ | ||||
|  | ||||
| module.exports = { | ||||
| 	sleep: (ms)=> new Promise((resolve) => setTimeout(resolve, ms)), | ||||
| 	nextTick: ()=> new Promise(resolve => process.nextTick(resolve)), | ||||
| 	getOrRun: function(value){ | ||||
| 		return typeof(value) === 'function' ? value() : value | ||||
| 	}, | ||||
| }; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user