Async requests? #11
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: library-mirrors/gamejoltlua#11
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Seems like requests freeze an app for a few seconds.
Certainly, need a way to find a solution to make it more.. async?
The API for async is kinda framework dependant, LÖVE has threads but I dont know if this feature is available in other frameworks (it is not available in Lua itself)
Maybe start a new project that requires this lib and makes it async just for LÖVE, I started something but is no where near to be published (No time for it right now)
Not sure how it could be done for other apps
Maybe there's something included for that in LuaSocket. Gotta research a bit.
Okey then check this and this
Some people also suggest coroutines but I dont think that may work (it does work when you need more than one request but that is not the case)
Other option is modifying the http.request function, so that we get chunks of the data in every update, and when the download or upload of data is done we can close the connection and call the callback. Not really sure if this would work though (plus it may not be very friendly to the GameJolt server)