1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Solved Is the $server var on the function onCompletion from AsyncTask cloned ?

Discussion in 'Development' started by friscowz, Oct 30, 2017.

  1. friscowz

    friscowz Baby Zombie Ban Evader Banned

    Messages:
    128
    GitHub:
    friscowzmcpe
    - Is the $server var on the function onCompletion from AsyncTask cloned ?
    i mean can we like getPlayer() using that variable ? cuz i know that it's another thread etc.. but is that Function in another thread as well ?, oh yea btw i didn't test it yet.
     
  2. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    onCompletion is not in the asyncworker thread. It is again on the mainthread. It exists for you to sync/put your results where they belong.
     
  3. friscowz

    friscowz Baby Zombie Ban Evader Banned

    Messages:
    128
    GitHub:
    friscowzmcpe
    oh thanks that's what i wanted to know :)
     
  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.