# LibTmux.Recovery.awaitCleanup

- **Package:** libtmux-haskell
- **Language:** Haskell
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-haskell/blob/72edb54317bf619c6dc54bff311844f062f8984c/internal/LibTmux/Internal/Scope.hs#L174
- **Page:** https://libtmux.org/en/haskell/latest/reference/libtmux-recovery-v-awaitcleanup/

```haskell
awaitCleanup :: CleanupRecovery -> IO CleanupStatus
```

Signature types: [`CleanupRecovery`](/en/haskell/latest/reference/libtmux-recovery-t-cleanuprecovery/), [`IO`](https://hackage.haskell.org/package/base-4.22.0.0/docs/Prelude.html#t:IO), [`CleanupStatus`](/en/haskell/latest/reference/libtmux-recovery-t-cleanupstatus/).

Wait for this target's physical cleanup, then inspect its logical debt.
 The wait has no deadline.
 Cancellation or failure preserves an annotated cleanup owner. Use
 [`resumeCleanup`](/en/haskell/latest/reference/libtmux-recovery-v-resumecleanup/) when the caller requires a bounded attempt.

## Referenced declarations

- [`LibTmux.Recovery.CleanupRecovery`](/en/haskell/latest/reference/libtmux-recovery-t-cleanuprecovery/) (data type)
- [`LibTmux.Recovery.CleanupStatus`](/en/haskell/latest/reference/libtmux-recovery-t-cleanupstatus/) (data type)
