diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-11-02 10:45:41 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-11-02 10:45:41 +0100 |
commit | 73a6a0c014fd850a97eba175abe1ef8e2d0220b4 (patch) | |
tree | 2a55a08c30772b34248aa88b1bd4ae7626c5acac /src/storage | |
parent | 9aa58194d44fef8b0b916f6c96edd124ce13bf7b (diff) | |
download | aerogramme-73a6a0c014fd850a97eba175abe1ef8e2d0220b4.tar.gz aerogramme-73a6a0c014fd850a97eba175abe1ef8e2d0220b4.zip |
example usage of boxed futures
Diffstat (limited to 'src/storage')
-rw-r--r-- | src/storage/in_memory.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/storage/in_memory.rs b/src/storage/in_memory.rs index fe7c93f..dd255ad 100644 --- a/src/storage/in_memory.rs +++ b/src/storage/in_memory.rs @@ -1,3 +1,4 @@ +use futures::FutureExt; use crate::storage::*; #[derive(Clone, Debug)] @@ -29,7 +30,9 @@ impl IRowRef for MemRef { unimplemented!(); } fn poll(&self) -> AsyncResult<Option<RowValue>> { - unimplemented!(); + async { + Ok(None) + }.boxed() } } |