|
Post by andreyy on Oct 8, 2021 17:21:58 GMT
I use httpGet() very often, but the request takes a long time.I want to create asynchronous function: function async_test()
httpGet("https://test.com/")
end
I tried co = coroutine.create(async_test) coroutine.resume(co)
But it doesn't work for some reason And i tried lua_thread.create(async_test) Here I got an error: How to create async httpGet()?
|
|
|
Post by AnkuLua on Oct 8, 2021 22:59:33 GMT
No. Multi-thread is not supported in lua.
|
|