mogami-stream - v0.2.0
    Preparing search index...

    Function fromEvent

    • Converts EventTarget events (including WebSocket events) to a bounded stream. Each execution installs one listener on first demand and removes it on close. Events do not complete automatically; use take(), cancellation, or fromCallback when the source has a separate completion event.

      Type Parameters

      • T extends Event = Event

      Parameters

      Returns Stream<T>