fix Exit; document Size

This commit is contained in:
facile pop culture reference 2026-06-25 10:56:13 +03:00
parent 0273d2ac75
commit cb382cf12e
3 changed files with 8 additions and 4 deletions

View file

@ -4,7 +4,7 @@ use crate::Usually;
#[derive(Clone)] pub struct Exit(Arc<AtomicBool>);
impl Exit {
pub fn run <T> (run: impl Fn(Self)->Usually<T>) -> Usually<T> {
pub fn run <T> (run: impl FnOnce(Self)->Usually<T>) -> Usually<T> {
run(Self(Arc::new(AtomicBool::new(false))))
}
}