Skip to content

AbortSignal.timeout throws DOMException, which is not available in React Native #84

Description

@mozzius

Hello! I'm trying to use this in a React Native environment, as that has incomplete support for AbortController/Signal. However, after using AbortSignal.timeout, it creates a DOMException when the timeout is over. Would it be possible to check if it's running in a non-DOM environement and create a normal Error if so?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions