mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 09:01:08 +03:00
[FEATURE] Thread-Safe реализация WaitEventHandler
This commit is contained in:
parent
65aec60ef5
commit
aab9a27f73
1 changed files with 3 additions and 1 deletions
|
@ -5,10 +5,12 @@
|
|||
import ru.gravit.utils.helper.LogHelper;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
public class WaitEventHandler implements ClientWebSocketService.EventHandler {
|
||||
public HashSet<ResultEvent> requests = new HashSet<>();
|
||||
public Set<ResultEvent> requests = ConcurrentHashMap.newKeySet();
|
||||
|
||||
@Override
|
||||
public void process(ResultInterface result) {
|
||||
|
|
Loading…
Reference in a new issue