How can two request work and update ui independently.
I have set updatethreadcount(4).
--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/f114c572-9816-4aee-9c96-02a9adaac461%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
For long polling, you probably should use "addToQueueAndWait()".
For long polling, you probably should use "addToQueueAndWait()". This uses invokeAndBlock() under the hood which, due to technical reasons, operates as a FILO (first in last out) queue. invokeAndBlock() is great for shorter tasks, but when they start piling up, you can end up waiting longer than you expect for the first one to return.Better to do your polling asynchronously.Steve
On Thu, Nov 3, 2016 at 8:26 AM, CODENAME1 <prity19...@gmail.com> wrote:
Hi,
When I fire a request ( that implements long poking) which has a default timeout of 1min. And fire another request . Even though the response for the second request is received , the UI doesn't update since it waits for the response of the first request . This gives a freeze effect on the front end.
How can two request work and update ui independently.
I have set updatethreadcount(4).
--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/f114c572-9816-4aee-9c96-02a9adaac461%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--