Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How to force a RPC complete before doing remaining code?

    I use a RPC to load some item from the database which use to create the menu.
    The problem is RPC has some delay, and the program would do all the remaining code during the RPC is working.

    Can I force the RPC complete before doing the remaining code?

    Thanks alot!!

    #2
    It is not possible.
    When you have to load data form the server, data load should be the last operation in your method call; the operations that follow data arrival should be put in a callback passed as parameter to your server call. This force your operations to be executed after the delay.

    Comment

    Working...
    X