MCPcopy Index your code
hub / github.com/ccxt/ccxt / future

Method future

java/lib/src/main/java/io/github/ccxt/ws/WsClient.java:177–184  ·  view source on GitHub ↗

Get or create a Future for a messageHash. If a rejection was queued before the future existed, reject it immediately.

(String messageHash)

Source from the content-addressed store, hash-verified

175 * If a rejection was queued before the future existed, reject it immediately.
176 */
177 public Future future(String messageHash) {
178 Future f = futuresMap().computeIfAbsent(messageHash, k -> new Future());
179 Object rejection = rejectionsMap().remove(messageHash);
180 if (rejection != null) {
181 f.reject(rejection);
182 }
183 return f;
184 }
185
186 public Future reusableFuture(String messageHash) {
187 return this.future(messageHash);

Callers 15

reusableFutureMethod · 0.95
watchMethod · 0.45
watchMultipleMethod · 0.45
setBalanceCacheMethod · 0.45
setPositionsCacheMethod · 0.45
setPositionsCacheMethod · 0.45
setBalanceCacheMethod · 0.45
setPositionsCacheMethod · 0.45
setPositionsCacheMethod · 0.45

Calls 4

futuresMapMethod · 0.95
rejectionsMapMethod · 0.95
rejectMethod · 0.95
removeMethod · 0.45