mirror of
				https://github.com/1disk/edp445.git
				synced 2024-08-14 22:47:02 +00:00 
			
		
		
		
	Changed alot of things.
This commit is contained in:
		
							parent
							
								
									a5a0523e5a
								
							
						
					
					
						commit
						3513d5390c
					
				
					 2016 changed files with 336930 additions and 9 deletions
				
			
		
							
								
								
									
										25
									
								
								node_modules/asynckit/lib/readable_serial.js
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								node_modules/asynckit/lib/readable_serial.js
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							|  | @ -0,0 +1,25 @@ | |||
| var serial = require('../serial.js'); | ||||
| 
 | ||||
| // API
 | ||||
| module.exports = ReadableSerial; | ||||
| 
 | ||||
| /** | ||||
|  * Streaming wrapper to `asynckit.serial` | ||||
|  * | ||||
|  * @param   {array|object} list - array or object (named list) to iterate over | ||||
|  * @param   {function} iterator - iterator to run | ||||
|  * @param   {function} callback - invoked when all elements processed | ||||
|  * @returns {stream.Readable#} | ||||
|  */ | ||||
| function ReadableSerial(list, iterator, callback) | ||||
| { | ||||
|   if (!(this instanceof ReadableSerial)) | ||||
|   { | ||||
|     return new ReadableSerial(list, iterator, callback); | ||||
|   } | ||||
| 
 | ||||
|   // turn on object mode
 | ||||
|   ReadableSerial.super_.call(this, {objectMode: true}); | ||||
| 
 | ||||
|   this._start(serial, list, iterator, callback); | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue