Apply yield forcely

This commit is contained in:
Leeingnyo
2021-09-14 22:51:37 +09:00
parent 2e09efbd62
commit 670cf54957
3 changed files with 7 additions and 0 deletions

View File

@@ -56,6 +56,7 @@ class Dir
# directories)
def self.contents_signature(dirname, cache = {} of String => String) : String
return cache[dirname] if !cache.nil? && cache[dirname]?
Fiber.yield # Yield first
signatures = [] of String
self.open dirname do |dir|
dir.entries.sort.each do |fn|