Static
from Dom
from Dom : ( ( type , target , options ? ) => AsyncIterableIterator < Event | UIEvent | AnimationEvent | MouseEvent | InputEvent | FocusEvent | CompositionEvent | DragEvent | ErrorEvent | FormDataEvent | PointerEvent | KeyboardEvent | ProgressEvent < EventTarget > | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent > ) = ...
Type declaration
( type , target , options ? ) : AsyncIterableIterator < Event | UIEvent | AnimationEvent | MouseEvent | InputEvent | FocusEvent | CompositionEvent | DragEvent | ErrorEvent | FormDataEvent | PointerEvent | KeyboardEvent | ProgressEvent < EventTarget > | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent >
Parameters
type : keyof GlobalEventHandlersEventMap
target : Target < keyof GlobalEventHandlersEventMap , Listener < keyof GlobalEventHandlersEventMap > , boolean | AddEventListenerOptions >
Optional
options : boolean | AddEventListenerOptions
Returns AsyncIterableIterator < Event | UIEvent | AnimationEvent | MouseEvent | InputEvent | FocusEvent | CompositionEvent | DragEvent | ErrorEvent | FormDataEvent | PointerEvent | KeyboardEvent | ProgressEvent < EventTarget > | SecurityPolicyViolationEvent | SubmitEvent | TouchEvent | TransitionEvent | WheelEvent >
Balances a push queue with a pull queue, also known as a dropping-buffer channel, since the queues are FIFO and can be set to be bounded, i.e., to drop the oldest enqueued values if the limit is exceeded. The channel is unbounded by default.