Skip to content

Is it possible to set an infinite timeout? #10

@ciresnave

Description

@ciresnave

Is it possible to have no timeout and wait for something forever? For example, I have a variable that may or may not ever change but need to check for it changing periodically. situwaition seems like a good crate to accomplish that except that I don't want a timeout. Instead, I want it to wait indefinitely. I'm sure I could wrap something around situwaition to start waiting again any time there is a timeout or I could simply set the timeout to such a ridiculously long duration that the timeout would never happen within the plausible run time of my code...but I figured I would ask if there was a way to actually specify that I don't want situwaition to time out.

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