1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

Android Question Wait for with timeout

Discussion in 'Android Questions' started by LogicMaker, Jul 31, 2019.

  1. LogicMaker

    LogicMaker New Member Licensed User

    Wait For is a great addition to the B4A. Is it possible to add a Timeout condition with the Wait For?
  2. KMatle

    KMatle Expert Licensed User

    It's given in the "method" you call. E.g. OkHttpUtils. Here you set the timeout. Wait For just waits until the method calls the event. Here it is JobDone. Same to other events you want to wait for.
    LogicMaker, Erel and DonManfred like this.
  3. Erel

    Erel Administrator Staff Member Licensed User

    The answer above is correct. There are ways to implement a timeout feature in your code. The exact details depend on the event you are waiting for.
    LogicMaker likes this.
  4. LogicMaker

    LogicMaker New Member Licensed User

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice