add async feature #1

Merged
b4tman merged 62 commits from async into master 2023-08-18 06:29:46 +00:00
Showing only changes of commit daf41625ff - Show all commits

View File

@ -158,14 +158,9 @@ async fn read_from_db(id: u32) -> Option<Question> {
id as usize - 1
};
println!("{}", &index); // DEBUG
match reader.get(index).await {
Ok(question) => Some(question),
Err(e) => {
println!("{:#?}", e); // DEBUG
None
}
Err(_) => None
}
}
async fn write_db() {