You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuweni.apache.org by to...@apache.org on 2020/02/21 00:00:18 UTC
[incubator-tuweni] branch master updated: fix the clearAsync method
This is an automated email from the ASF dual-hosted git repository.
toulmean pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tuweni.git
The following commit(s) were added to refs/heads/master by this push:
new 0773ca2 fix the clearAsync method
0773ca2 is described below
commit 0773ca2deb98ffff276ffcce20875d6c0015d2e2
Author: Antoine Toulme <an...@lunar-ocean.com>
AuthorDate: Thu Feb 20 16:00:06 2020 -0800
fix the clearAsync method
---
kv/src/main/kotlin/org/apache/tuweni/kv/KeyValueStore.kt | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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 @@ interface KeyValueStore<K, V> : Closeable, CoroutineScope {
/**
* 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() }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tuweni.apache.org
For additional commands, e-mail: commits-help@tuweni.apache.org