Skip to content

firstValueFrom/lastValueFrom is missing AbortSignal support #6442

Open
@ronag

Description

@ronag

Promise based API's should generally also accept a signal property which is passed an AbortSignal instance.

const ac = new AbortController()
const promise = await rxjs.firstValueFrom(x$, { signal: ac.signal })
setTimeout(() => ac.abort(), 1e3)
await promise // Throws abort error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions