summaryrefslogtreecommitdiffhomepage
path: root/android/lib/common/src/main
diff options
context:
space:
mode:
authorAlbin <albin@mullvad.net>2023-08-04 10:23:35 +0200
committerAlbin <albin@mullvad.net>2023-08-04 11:24:45 +0200
commitbfe2a3d0d0b6ed4bbe19f580735d0cc6b3bfafd6 (patch)
tree4bbb505f1ee58ad7ae9a60dd79aeeff6430a8d1f /android/lib/common/src/main
parentc27e788a81832e0add9fc4ee2362df97ded96323 (diff)
downloadmullvadvpn-bfe2a3d0d0b6ed4bbe19f580735d0cc6b3bfafd6.tar.xz
mullvadvpn-bfe2a3d0d0b6ed4bbe19f580735d0cc6b3bfafd6.zip
Apply updated ktfmt formatting
Diffstat (limited to 'android/lib/common/src/main')
-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 {