• I'm not sure about an Internet request blocking..., because a callback is passed onto the request to handle the response.

    With that said, other things can move on and do their thing.

    Of course not every callback is asynchronous, but why ask for one and then just be sychronous? For a synchronous request, assigning the request result to a variable would be sufficient.

  • Like I said - whether that example actually blocks is beside the point (I think it does, or did recently - at least Original/Pico - I remember being flabbergasted when I realized it, and I think there was a big forum thread here discussing it. Neil Kolban was involved in that one, IIRC - I think he flagged up this behavior while working on ESP8266).

    The question is more about the behavior of intervals and timeouts when there are blocking tasks.

About

Avatar for allObjects @allObjects started