Skip to content

bar.Abort should not cause the bar to render if the render delay hasn't expired #136

@neilotoole

Description

@neilotoole

First, thanks for a wonderful library 🙏

Problem

I create a progress container with a render delay of, say, 5s. I have multiple bars, some of which complete quickly, and some which take a long time. When a bar completes its work, I call bar.Abort(true). However, if Abort is called before the render delay has expired (e.g. in 2s), the bar will, surprisingly, render immediately.

What I expect to happen

I expect Abort to honor the render delay. If a bar completes its work before the render delay expires, the bar should never be rendered.

See full example in gist: https://gist.github.com/neilotoole/0c799d06ef9d47458328bdfd6054790a

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