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

Method resolve

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

Resolve a specific future by messageHash. Removes it from the map so the next watch() call creates a fresh one.

(Object content, Object messageHash2)

Source from the content-addressed store, hash-verified

192 * Removes it from the map so the next watch() call creates a fresh one.
193 */
194 public void resolve(Object content, Object messageHash2) {
195 if (this.verbose && messageHash2 == null) {
196 System.out.println("resolve received null messageHash");
197 return;
198 }
199 String messageHash = messageHash2.toString();
200 rejectionsMap().remove(messageHash); // clear any stale rejection for this hash
201 Future f = futuresMap().remove(messageHash);
202 if (f != null) {
203 f.resolve(content);
204 }
205 }
206
207 /**
208 * Reject a specific future, or all futures if messageHash is null.

Calls 5

rejectionsMapMethod · 0.95
futuresMapMethod · 0.95
resolveMethod · 0.95
toStringMethod · 0.45
removeMethod · 0.45