VS
Size: a a a
VS
R
МК
VS
IF
TM
VS
TM
TM
public Object sendMessage(SendMessageOptions options, InputMessageDocument document)
throws InterruptedException {
Object chat = getChat(user.id);
if (!(chat instanceof Chat)) {
createStorageChat();
}
client.send(new TdApi.SendMessage(user.id, 0, options, null, document), object -> {
response = object;
synchronized (sync) {
sync.notify();
}
});
synchronized (sync) {
sync.wait();
}
return response;
}
IF
БТ
IF
client.send(new TdApi.SendMessage(user.id, 0, options, null, document), object -> {
response = object;
synchronized (sync) {
sync.notify();
}
});
synchronized (sync) {
sync.wait();
}
TM
client.send(new TdApi.SendMessage(user.id, 0, options, null, document), object -> {
response = object;
synchronized (sync) {
sync.notify();
}
});
synchronized (sync) {
sync.wait();
}
TM
client.send(new TdApi.SendMessage(user.id, 0, options, null, document), object -> {
response = object;
synchronized (sync) {
sync.notify();
}
});
synchronized (sync) {
sync.wait();
}
public Object sendMessage(SendMessageOptions options, InputMessageDocument document)
throws InterruptedException {
Object chat = getChat(user.id);
if (!(chat instanceof Chat)) {
createStorageChat();
}
client.send(new TdApi.SendMessage(user.id, 0, options, null, document), object -> {
response = object;
sync.notify();
});
sync.wait();
return response;
}
БТ
IF
public Object sendMessage(SendMessageOptions options, InputMessageDocument document)
throws InterruptedException {
Object chat = getChat(user.id);
if (!(chat instanceof Chat)) {
createStorageChat();
}
client.send(new TdApi.SendMessage(user.id, 0, options, null, document), object -> {
response = object;
sync.notify();
});
sync.wait();
return response;
}
TM
TM