Skip to main content

Module blocking

Module blocking 

Source
Expand description

Blocking wrappers for fire-and-forget operations.

These are safe to call from any thread. None of them wait for a notification response — use crate::block_on_main with the async API for that.

Functions§

cancel_pending
Cancel a pending (not yet delivered) notification by its identifier.
close_delivered
Remove an already-delivered notification from Notification Center by its identifier.
get_notification_settings
Query the current notification authorization settings, blocking the caller.
request_auth
Ask for permission to display notifications (blocks caller).
send
Schedule a notification for immediate delivery, blocking the calling thread.