mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 05:22:45 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			712 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			712 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <script src="../include.js"></script>
 | |
| <script>
 | |
|     test(() => {
 | |
|         let controller;
 | |
|         new ReadableStream(
 | |
|             {
 | |
|                 start(c) {
 | |
|                     controller = c;
 | |
|                 }
 | |
|             },
 | |
|             new CountQueuingStrategy({ highWaterMark: 3 })
 | |
|         );
 | |
| 
 | |
|         println(controller.desiredSize);
 | |
|         controller.enqueue('Hello, friends!');
 | |
|         println(controller.desiredSize);
 | |
|         controller.enqueue('Enqueues being counted...');
 | |
|         println(controller.desiredSize);
 | |
|         controller.enqueue('By CountQueuingStrategy');
 | |
|         println(controller.desiredSize);
 | |
|         controller.enqueue('!');
 | |
|         println(controller.desiredSize);
 | |
|     });
 | |
| </script>
 | 
