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

Method spawn

java/lib/src/main/java/io/github/ccxt/Exchange.java:1834–1836  ·  view source on GitHub ↗

Fire-and-forget async task (matches JS spawn() / C# Task.Run()). Used for fetching order book snapshots while WS loop continues.

(Runnable task)

Source from the content-addressed store, hash-verified

1832 * Used for fetching order book snapshots while WS loop continues.
1833 */
1834 public void spawn(Runnable task) {
1835 VIRTUAL_EXECUTOR.execute(task);
1836 }
1837
1838 /**
1839 * Schedule a method-name callback on the virtual executor after a delay.

Callers 15

scheduleCallbackMethod · 0.95
spawnWithResultMethod · 0.95
setBalanceCacheMethod · 0.45
setPositionsCacheMethod · 0.45
handleOrderBookMethod · 0.45
setPositionsCacheMethod · 0.45
handlePingMethod · 0.45
handleOrderBookMethod · 0.45
setBalanceCacheMethod · 0.45
setPositionsCacheMethod · 0.45
setPositionsCacheMethod · 0.45
handlePingMethod · 0.45

Calls

no outgoing calls

Tested by 1

testUnWatchPositionsMethod · 0.36