Question:
Hello!
i am using async calls to avoid locking the interface and do other work while uploading with the ftp2 library. Problem is the connect function! if some settings or the login data is wrong then this call locks the interface until the connection times out.. (60 seconds)
is there a way to avoid having all locked for 60 seconds? thanks
If your program is single-threaded, then Yes -- a call into a method will block the program's main thread form servicing the UI because it is busy within the method that is being called.
There are several solutions, depending on your programming language: