Brew Question: Download Brew PDF

Are network callbacks invoked in the context of the main thread, and if so how is the data integrity preserved in the current context?

Tweet Share WhatsApp

Answer:

All network callbacks occur within the same thread context, at some point in time after the caller returns control to the AEE event loop. If your application is busy doing something, callbacks will be queued, then invoked once your application returns control to the AEE event loop, ensuring data integrity..

Download Brew PDF Read All 78 Brew Questions
Previous QuestionNext Question
How many sockets can be opened simultaneously?When reading from a socket the phone reads whatever it can in one go, while the emulator reads large packets in chunks. Why?