Skip to content

It would be useful if the retry function returned the timout number #73

@zkochan

Description

@zkochan

I am working on improved logging in pnpm. When a request fails, I want to print something like:

WARN GET <URL> error (500). Will retry in 16 seconds. 2 retries left.

I can calculate how many retries are left but I can't know how long the retry will wait. So it would be great if the retry function would return timeout instead of true here:

return true;

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