samedi 27 août 2016

Wait for thread to finish

Hi,

I have implemented a network protocol using AsyncStreamsText. This if course works asynchroneously.
However the communication is called from a console append I want the main thread to wait until the async protocol handling has finished.

What I tried was:
- the main thread starts the Async communication and the calls StartMessageLoop
- the Async thread/class sets a class variable "result as boolean" and has its async handling of events but when the communication ends it calls sets...

Wait for thread to finish

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/2bOCZLH
via IFTTT

Aucun commentaire:

Enregistrer un commentaire