Download file asyne lua

2 Nov 2018 Simply download and run make install (requires root Save the file as helloworld.lua and run it with luajit helloworld.lua. of your module may use the turbo.async.task function to wrap the function and use the builtin Lua 

loadRemoteImage() to download and display a remote image in a single API call. You can work around this by saving the request you wish to make to a file in a Lua pcall() statement (errors are reported in the event sent to the network 

Add something like (untested): local imageresp = http:request({ method = "get", url = url_from_decoded_json, }); local imagefile = io.open("some_file", "w") 

Download latest version of async.lua; Put it inside your resource folder; Update resource meta.xml file: All rights reserved