pub async fn admit(
purpose: &'static Purpose,
entity_id: impl Into<String>,
generation: u64,
) -> Option<Slot>Expand description
Admit a call for purpose on entity_id at generation, in the purpose’s
own class (limits); None if it is stale on arrival, or was superseded while
queued. It waits for a permit raced against cancellation, so a request
superseded in the queue never spawns a CLI at all.