mirror of
https://github.com/chatmail/core.git
synced 2026-04-21 15:36:30 +03:00
move pause to only exist on Scheduler
This commit is contained in:
committed by
link2xt
parent
52fa58a3ce
commit
2c3b2b8c2d
@@ -87,7 +87,7 @@ pub async fn imex(
|
||||
let cancel = context.alloc_ongoing().await?;
|
||||
|
||||
let res = {
|
||||
let mut guard = context.pause_io().await;
|
||||
let mut guard = context.scheduler.pause(context).await;
|
||||
let res = imex_inner(context, what, path, passphrase)
|
||||
.race(async {
|
||||
cancel.recv().await.ok();
|
||||
|
||||
Reference in New Issue
Block a user