Skip to main content

with_cancel

Function with_cancel 

Source
pub fn with_cancel<R>(t: Option<&CancelToken>, f: impl FnOnce() -> R) -> R
Expand description

f を中断の印 t の下で回す(文脈のほかの項目は引き継ぐ)。この中の check_cancel・cancelled は t を見る