Closed ryannining closed 5 years ago
Can't really help you here. Async isn't really a plug replacement for sync, at least not if you want to realize the benefits of async. In general it would require a restructuring of your program to do other things while waiting for the request to complete. There is the capability to attach a handler to either state change or data receipt, so that could be done with minimal change to your program, but you still need to synchronize somehow after the request completes before doing another request.
looks promising for my project, an ESP 3d controller that download Gcodes from my server , or to report to server. Currently i am using standard httpclient library and its pause the machine every time its report to server using http client.
but i am confuse how to implement it on async. can you help me ?
thanks.