Skip to content

Pass Time::Span to sleep (to please upcoming deprecation)#784

Merged
spuun merged 2 commits intomainfrom
pass-timespan-to-sleep
Sep 16, 2024
Merged

Pass Time::Span to sleep (to please upcoming deprecation)#784
spuun merged 2 commits intomainfrom
pass-timespan-to-sleep

Conversation

@spuun
Copy link
Member

@spuun spuun commented Sep 16, 2024

WHAT is this pull request doing?

sleep(Number) is deprecated in crystal 1.14, see crystal-lang/crystal#14962

This will make sure we pass Time::Span everywhere.

HOW can this pull request be tested?

Runs specs

Copy link
Member

@kickster97 kickster97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the threshold is low to change to milliseconds now that you already have a PR so i would vote for doing it right the first time, but still approve :)

@spuun spuun merged commit 851594d into main Sep 16, 2024
@spuun spuun deleted the pass-timespan-to-sleep branch September 16, 2024 12:19
@viktorerlingsson
Copy link
Member

I'm too late, but saw some small inconsistencies. Fixed it here! 20c21d7

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.

4 participants