Finished removing usage of Excon- package download reimplemented (TODO: see if it's possibly to not need to make n requests to endpoint to emulate excon's chunked downloading), raise Async::Stop when window is closed to shutdown reactor

This commit is contained in:
2021-12-27 09:56:09 -06:00
parent 55191f143a
commit 93cc161f4c
4 changed files with 44 additions and 28 deletions

View File

@@ -473,9 +473,6 @@ class W3DHub
internet = Async::HTTP::Internet.instance
Api.package(internet, package) do |chunk, remaining_bytes, total_bytes|
# Store progress somewhere
# Kernel.puts "#{name}-#{version}: #{(remaining_bytes.to_f / total_bytes).round}%"
block&.call(chunk, remaining_bytes, total_bytes)
end
end