Ensuring Resource Release with withPermits: Handling Success, Failure, and Interruptions
The docs state:
One crucial aspect to remember is that withPermits ensures that each acquisition is matched with an equivalent number of releases, regardless of whether the task succeeds, fails, or gets interrupted.If I
die, does it also release it? Does this also encompass defects?