🅨
Size: a a a
DS
АК
АК
🅨
АК
🅨
АК
АК
АК
🅨
suspend fun waitInfo(hash: String, onProgress: (stat: TorrentStat) -> Unit) {
delay(1000)
while (true) {
try {
val stat = Api.torrentStat(hash)
onProgress(stat)
if (stat.TorrentStatus != TorrentSTGettingInfo)
break
delay(100)
} catch (e: Exception) {
delay(1000)
}
}
}
А в другом потоке получаю инфу таким же образом и выдаю ее на экран🅨
АК
suspend fun waitInfo(hash: String, onProgress: (stat: TorrentStat) -> Unit) {
delay(1000)
while (true) {
try {
val stat = Api.torrentStat(hash)
onProgress(stat)
if (stat.TorrentStatus != TorrentSTGettingInfo)
break
delay(100)
} catch (e: Exception) {
delay(1000)
}
}
}
А в другом потоке получаю инфу таким же образом и выдаю ее на экранАК
{action: "get_files", hash: "586ec7ef998d4bb71dcf248ef55a1e6585de37ce"}а ответ
[{id: 1, path: "Gemini.Man.2019.Lic.BDREMUX.1080p.seleZen.mkv", length: 28679334961},{id: 2, path: "file2", length: 1231313131}]
АК
🅨
{action: "get_files", hash: "586ec7ef998d4bb71dcf248ef55a1e6585de37ce"}а ответ
[{id: 1, path: "Gemini.Man.2019.Lic.BDREMUX.1080p.seleZen.mkv", length: 28679334961},{id: 2, path: "file2", length: 1231313131}]
НС
НС
НС