Skip to content

munet: reverse Timeout().__bool__() logic -> True means expired - #93

Merged
choppsv1 merged 1 commit into
mainfrom
chopps/fix-timeout-logic
Jan 4, 2026
Merged

choppsv1 merged 1 commit into
mainfrom
chopps/fix-timeout-logic

Conversation

@choppsv1

@choppsv1 choppsv1 commented Jan 4, 2026

Copy link
Copy Markdown
Collaborator
  • This just reads way better in code. The Timeout() object is generally going to be called something like timeout so we now have:
    timeout = Timeout(30)
    while not timeout:
        ...

vs. while timeout: ... meaning not timed out yet.

- This just reads way better in code. the Timeout() object is generally going to
be called something like `timeout` so we now have:

```
    timeout = Timeout(30)
    while not timeout:
        ...
```

vs. `while timeout: ...` meaning not timed out yet.

Signed-off-by: Christian Hopps <chopps@labn.net>
@choppsv1
choppsv1 merged commit 9ae7d50 into main Jan 4, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant