Class LastResult<A>

Type Parameters

  • A

Hierarchy

  • LastResult

Implements

Constructors

Properties

buffer: Deferred<IteratorResult<A, any>> = ...
closed: boolean = false
requested: boolean = false
resolved: boolean = false
fromDom: ((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>

fromEmitter: ((type, emitter) => AsyncIterableIterator<any>) = ...

Type declaration

    • (type, emitter): AsyncIterableIterator<any>
    • Parameters

      • type: string | symbol
      • emitter: EventEmitter

      Returns AsyncIterableIterator<any>

Methods

  • Parameters

    • Optional onReturn: (() => void)
        • (): void
        • Returns void

    Returns {
        next: (() => Promise<IteratorResult<A, any>>);
        return: ((value?) => Promise<IteratorResult<A, any>>);
        [asyncIterator]() => { next: () => Promise<IteratorResult<A, any>>; [Symbol.asyncIterator](): ...; return: (value?: A | undefined) => Promise<IteratorResult<A, any>>; };
    }

    • next: (() => Promise<IteratorResult<A, any>>)
        • (): Promise<IteratorResult<A, any>>
        • Returns Promise<IteratorResult<A, any>>

    • return: ((value?) => Promise<IteratorResult<A, any>>)
        • (value?): Promise<IteratorResult<A, any>>
        • Parameters

          • Optional value: A

          Returns Promise<IteratorResult<A, any>>

    • [asyncIterator]:function
      • Returns { next: () => Promise<IteratorResult<A, any>>; [Symbol.asyncIterator](): ...; return: (value?: A | undefined) => Promise<IteratorResult<A, any>>; }

Generated using TypeDoc