4 ms·
In the older syntax, something like this: client.startAsync(new Consumer<TorrentSessionState> { void accept(TorrentSessionState state) { if (state.getPiec
by train_robber 9y ago
In the older syntax, something like this:
client.startAsync(new Consumer<TorrentSessionState> {
void accept(TorrentSessionState state) {
if (state.getPiecesRemaining() == 0) {
client.stop();
}
}
}, 1000).join();
- nunobrito 9y agoThank you. Really useful.