withRuntime
Own a Runtime for the callback and perform bounded cleanup afterward.
Closing it retires every adopted handle; application-owned threads remain
the application's responsibility. Late adoption fails with RuntimeClosed.
The daemon remains running.
Source and package
- Qualified name
-
LibTmux .Server. with Runtime - Declared in
LibTmux.Server- Package
- libtmux-haskell
- Source
- src/LibTmux/Server.hs
-
Description#
Callback failures and cancellation keep their original exception class. Incomplete cleanup retains a
CleanupRecoveryin the exception context; usetryTmuxandcleanupRecoveriesto keep that responsibility reachable.
Referenced declarations#
- LibTmux.Server.Runtime data type
Guides#
Pages that discuss withRuntime.