mirror of
				https://scm.univ-tours.fr/22107988t/rappaurio-sae501_502.git
				synced 2025-11-04 04:15:23 +01:00 
			
		
		
		
	Revert "permet l'ajout des frameworks et des routes"
This reverts commit 361112699c
			
			
This commit is contained in:
		
							
								
								
									
										29
									
								
								app/node_modules/asynckit/lib/abort.js
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										29
									
								
								app/node_modules/asynckit/lib/abort.js
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -1,29 +0,0 @@
 | 
			
		||||
// API
 | 
			
		||||
module.exports = abort;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Aborts leftover active jobs
 | 
			
		||||
 *
 | 
			
		||||
 * @param {object} state - current state object
 | 
			
		||||
 */
 | 
			
		||||
function abort(state)
 | 
			
		||||
{
 | 
			
		||||
  Object.keys(state.jobs).forEach(clean.bind(state));
 | 
			
		||||
 | 
			
		||||
  // reset leftover jobs
 | 
			
		||||
  state.jobs = {};
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Cleans up leftover job by invoking abort function for the provided job id
 | 
			
		||||
 *
 | 
			
		||||
 * @this  state
 | 
			
		||||
 * @param {string|number} key - job id to abort
 | 
			
		||||
 */
 | 
			
		||||
function clean(key)
 | 
			
		||||
{
 | 
			
		||||
  if (typeof this.jobs[key] == 'function')
 | 
			
		||||
  {
 | 
			
		||||
    this.jobs[key]();
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user