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 <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to