pub fn with_app<R>(f: impl FnOnce(&mut App) -> R) -> Result<R, GpuiError>Expand description
Runs f with the shared GPUI App.
Must be called on the main thread and not from inside GPUI code (which
already has a &mut App); returns GpuiError::Reentrant in that case.