pub fn exit<T>() -> Task<T>
Creates a Task that exits the iced runtime.
Task
This will normally close any application windows and terminate the runtime loop.