observeTorrent

fun observeTorrent(hash: String, waitIfMissing: Boolean = false): Flow<Torrent>

Emits the latest Torrent data for the hash. If the torrent is removed or not found, the flow will complete unless waitIfMissing is true.

Parameters

hash

The info hash of the torrent to observe.

waitIfMissing

When true, wait for the hash if it does not exist