commit | 0773ca2deb98ffff276ffcce20875d6c0015d2e2 | [log] [tgz] |
---|---|---|
author | Antoine Toulme <antoine@lunar-ocean.com> | Thu Feb 20 16:00:06 2020 -0800 |
committer | Antoine Toulme <antoine@lunar-ocean.com> | Thu Feb 20 16:00:06 2020 -0800 |
tree | b6d1542226b09999e3e5ef1d28956dffd8e5c498 | |
parent | 88ca5217d63f205971feb28d285589b7be57374a [diff] |
fix the clearAsync method
diff --git a/kv/src/main/kotlin/org/apache/tuweni/kv/KeyValueStore.kt b/kv/src/main/kotlin/org/apache/tuweni/kv/KeyValueStore.kt index c7b6d0e..3f20621 100644 --- a/kv/src/main/kotlin/org/apache/tuweni/kv/KeyValueStore.kt +++ b/kv/src/main/kotlin/org/apache/tuweni/kv/KeyValueStore.kt
@@ -86,6 +86,7 @@ /** * Clears the contents of the store. + * @return An [AsyncCompletion] that will complete when the content is cleared. */ - suspend fun clearAsync() = asyncResult { clear() } + fun clearAsync() = asyncCompletion { clear() } }