Updated on 2026-08-14

This commit is contained in:
Tangem 2024-02-29 00:08:47 +05:00
parent 54cb670f22
commit 1bcc834e7e
7 changed files with 46 additions and 92 deletions

View file

@ -16,6 +16,11 @@ class JobHolder {
this.job?.cancel()
this.job = job
}
/** Cancel current [job] */
fun cancel() {
job?.cancel()
}
}
fun Job.saveIn(jobHolder: JobHolder) = jobHolder.update(job = this)