mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 16:02:45 +00:00 
			
		
		
		
	 7625d8a155
			
		
	
	
		7625d8a155
		
	
	
	
	
		
			
			This method takes a list of AbortSignals and returns an AbortSignal that is aborted when any of the input signals is aborted.
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			640 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			640 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #import <DOM/EventTarget.idl>
 | |
| #import <DOM/EventHandler.idl>
 | |
| 
 | |
| // https://dom.spec.whatwg.org/#interface-AbortSignal
 | |
| [Exposed=(Window,Worker), CustomVisit]
 | |
| interface AbortSignal : EventTarget {
 | |
|     [NewObject] static AbortSignal abort(optional any reason);
 | |
|     [Exposed=(Window,Worker), NewObject] static AbortSignal timeout([EnforceRange] unsigned long long milliseconds);
 | |
|     // FIXME: Argument should be of type: sequence<AbortSignal>.
 | |
|     [NewObject] static AbortSignal _any(any signals);
 | |
| 
 | |
|     readonly attribute boolean aborted;
 | |
|     readonly attribute any reason;
 | |
|     undefined throwIfAborted();
 | |
| 
 | |
|     attribute EventHandler onabort;
 | |
| };
 |