Skip to content

Stabilize abort signal in retry #6972

@tomas-zijdemans

Description

@tomas-zijdemans

I'd like to propose stabilizing the support for abort signal in retry.ts. I think the rationale is quite simple:

  • It makes retry() compose well with other async functions (delay, deadline, abortable, circuit_breaker)
  • It's extra handy in the browser where you often need to cancel in-flight operations when a user navigates away or a component unmounts
  • It's a straightforward and backwards compatible change ☺️

Here is a PR that implements it.

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