pub async fn sample_webserver(
db: Database,
interval: Duration,
process_id: String,
usage: fn() -> Option<NodeUsage>,
stop: impl Future<Output = ()>,
)Expand description
A webserver in a process of its own samples itself every interval (decision 464) on db
as process_id, its figures from usage, until stop completes; a failure is logged.