These are chat archives for TheHolyWaffle/TeamSpeak-3-Java-API

10th
Feb 2017
Henny022
@Henny022
Feb 10 2017 18:42
is there something like a syncronize() method in the async API?
Roger Baumgartner
@rogermb
Feb 10 2017 18:42
What do you need to do exactly?
@Henny022
Henny022
@Henny022
Feb 10 2017 21:17
if i got that right, the async api does not wait for an anwser bevor continuing with the code, so i can send multiple commands at the same time
so is there a method, that waits, untill i got al the anwsers from the server, bevor continuing with the code
Roger Baumgartner
@rogermb
Feb 10 2017 21:33
Call .get() or .getUninterruptibly() on the last command you've sent
Both of these will wait until the answer to the command has arrived and return that answer. One of them throws an InterruptedException if an interrupt occurs, the other doesn't
Oh, and both of these also have a method that accepts a timeout value, so your code doesn't just hang forever if no answer from the server arrives
Henny022
@Henny022
Feb 10 2017 21:35
ok thanks