pub fn run_main_loop_while<F: Fn() -> bool>(should_continue: F)Expand description
Pump the main thread’s RunLoop until should_continue returns false.
Must be called from the main thread. Required because UNUserNotificationCenter
always delivers callbacks on the main thread’s run loop; async runtimes that occupy
the main thread will never fire callbacks.