Skip to content

fix: use time.After instead of time.Sleep#116

Merged
ninoseki merged 1 commit intomainfrom
use-time-after
Feb 25, 2026
Merged

fix: use time.After instead of time.Sleep#116
ninoseki merged 1 commit intomainfrom
use-time-after

Conversation

@ninoseki
Copy link
Collaborator

TIL time.Sleep does ignores a context timeout. It does sleep exceeding a timeout given.

time.After works differently and it does follow a context timeout.

@ninoseki ninoseki requested review from cdnsyseng and fw42 February 25, 2026 05:22
@ninoseki ninoseki merged commit 88bc2c5 into main Feb 25, 2026
4 checks passed
@ninoseki ninoseki deleted the use-time-after branch February 27, 2026 02:19
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.

2 participants