repair

fun repair()(source)

Repairs this resource: the units its holders lost come back (a held delay goes on, or starts again under RESTART), the resource takes the state its capacity and busy units give, and its available units are offered to the waiting requests as for a capacity increase. A resource that is not failed throws; isFailed is the check.