@elysiumoss/ui-capture - v0.3.0
    Preparing search index...

    Function closeQuietly

    • Best-effort teardown, for the release half of an acquireUseRelease.

      Closing a context or a page is what reaps its browser-side resources — and for a recording context, what flushes the video to disk — so it has to run on every exit path, including an interrupted one. It must never fail: a close() that rejects on an already-dead target would otherwise replace the real error with a teardown error and lose the reason the run stopped.

      Lives here because both the service (state and worker contexts, worker pages) and the video recorder need exactly this, and two copies are two chances for one of them to start reporting its failures.

      Parameters

      • close: () => Promise<unknown>

      Returns Effect<void>