summaryrefslogtreecommitdiffhomepage
path: root/android/lib/common
diff options
context:
space:
mode:
authorAlbin <albin@mullvad.net>2023-08-04 11:25:57 +0200
committerAlbin <albin@mullvad.net>2023-08-04 11:25:57 +0200
commitc02098a983aa33e70f56f9153022d3916f71283c (patch)
tree4bbb505f1ee58ad7ae9a60dd79aeeff6430a8d1f /android/lib/common
parentf5d5a5c7bf3889685c7c9fce9b53f85fd56e59b0 (diff)
parentbfe2a3d0d0b6ed4bbe19f580735d0cc6b3bfafd6 (diff)
downloadmullvadvpn-c02098a983aa33e70f56f9153022d3916f71283c.tar.xz
mullvadvpn-c02098a983aa33e70f56f9153022d3916f71283c.zip
Merge branch 'bump-android-dependencies'
Diffstat (limited to 'android/lib/common')
-rw-r--r--android/lib/common/src/main/kotlin/net/mullvad/mullvadvpn/lib/common/util/Intermittent.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/android/lib/common/src/main/kotlin/net/mullvad/mullvadvpn/lib/common/util/Intermittent.kt b/android/lib/common/src/main/kotlin/net/mullvad/mullvadvpn/lib/common/util/Intermittent.kt
index 38b152b00a..448d96778f 100644
--- a/android/lib/common/src/main/kotlin/net/mullvad/mullvadvpn/lib/common/util/Intermittent.kt
+++ b/android/lib/common/src/main/kotlin/net/mullvad/mullvadvpn/lib/common/util/Intermittent.kt
@@ -39,6 +39,7 @@ class Intermittent<T> {
// resume execution. This allows performing any extra initialization before the value is made
// available for usage.
fun registerListener(id: Any, listener: (T?) -> Unit) = notifier.subscribe(id, listener)
+
fun unregisterListener(id: Any) = notifier.unsubscribe(id)
suspend fun await(): T {