deltachat-rpc-server: spawn request handlers

This commit is contained in:
link2xt
2023-02-15 10:45:52 +00:00
parent d3e2f38da0
commit 78577594d0
4 changed files with 23 additions and 1 deletions

View File

@@ -85,6 +85,11 @@ impl CommandApi {
#[rpc(all_positional, ts_outdir = "typescript/generated")]
impl CommandApi {
/// Test function.
async fn sleep(&self, delay: f64) {
tokio::time::sleep(std::time::Duration::from_secs_f64(delay)).await
}
// ---------------------------------------------
// Misc top level functions
// ---------------------------------------------