Skip to main content

discard_unclaimed

Function discard_unclaimed 

Source
pub async fn discard_unclaimed<S: Storage>(
    storage: &S,
    now: WallTime,
) -> Result<Discarded>
Expand description

The same cleanup, narrowed by the lock instead of by a caller’s memory of what it made: a container nobody holds and nothing was ever written into.

This is how a host with no exit to sweep on asks the question — a browser tab that is closed runs nothing, so the containers a session left behind are judged the next time one starts, and the lock is what tells a newborn nobody kept from one another view has open.

§Errors

The claim, the read or the removal that did not work.