diff --git a/shard.yml b/shard.yml index a7dcd9a..4fb999f 100644 --- a/shard.yml +++ b/shard.yml @@ -32,4 +32,4 @@ dependencies: development_dependencies: ameba: github: crystal-ameba/ameba - version: ~> 0.13.0 + version: ~> 1.6.3 diff --git a/src/screen_resize.cr b/src/screen_resize.cr index 873c4d5..1be2af3 100644 --- a/src/screen_resize.cr +++ b/src/screen_resize.cr @@ -24,7 +24,7 @@ module Crysterm # Schedules resize fiber to run at now + `@resize_interval`. Repeated invocations # (before the interval has elapsed) have a desirable effect of re-starting the timer. private def schedule_resize - @_resize_loop_fiber.try &.timeout(@resize_interval) + @_resize_loop_fiber.try &.timeout(@resize_interval, Channel::TimeoutAction.new(@resize_interval)) end # Re-reads current size of all `Display`s and triggers redraw of all `Screen`s.