Skip to main content

watch_network_and_sleep

Function watch_network_and_sleep 

Source
async fn watch_network_and_sleep(
    signals: UnboundedSender<Event>,
    cancel: CancellationToken,
)
Expand description

Every WATCH_EVERY, tell the publisher about a wake from sleep or a change of network addresses. Cheap: a clock read and the interface list.