[−][src]Function blinds::run
pub fn run<F, T>(settings: Settings, app: F) -> ! where
T: 'static + Future<Output = ()>,
F: 'static + FnOnce(Window, EventStream) -> T,
The entry point for a blinds-based application
run
acts as the executor for your async application, and it handles your event loop on both
desktop and web. It is a single-threaded executor, because wasm doesn't support thread at the
moment.
Currently blinds only supports one window, and settings
determines how it will be
constructed.
If you want a GL context, use run_gl
instead. GL contexts require additional work when
creating a window, and therefore are not created by defualt.