[][src]Function seed_hooks::do_once

pub fn do_once<F>(func: F) -> StateAccess<bool> where
    F: FnMut(), 

call the provided function once and once only returns a unmmunt which will allow the do_once to repeat if .execute_if_activated() is called on the unmount. Example

do_once(||{ println!("This will print only once"); });