pub fn add_timeout<P: Fn() -> bool + Send + Sync + 'static>( async_context: Option<&MainContext>, interval: u32, function: P, ) -> Option<Source>