Skip to content

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

@mozzius

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?

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