How do I run two routines simultaneously in the same program? I'm trying to download a file, and print a value while downloading. Exactly this:
http = require "socket.http"
function downloadFile(url)
download = http.request(url)
return download
end
repeat
print("--")
until downloadFile("http://pokedg/patch/1.7z")
But only returns:
--
And it ends.