mirror of
https://github.com/chatmail/core.git
synced 2026-04-18 22:16:30 +03:00
deltachat-rpc-server: spawn request handlers
This commit is contained in:
@@ -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
|
||||
// ---------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user