Core LibraryunreleasedAPI Reference

Choose documentation 1

latest

Current version

latest
English

Unreleased libtmux-haskell has not been released. Its API may change during development. This site's structure and URLs may change too.

function libtmux-haskell latest

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.withRuntime
Declared in
LibTmux.Server
Package
libtmux-haskell
Source
src/LibTmux/Server.hs
withRuntime :: (Runtime -> IO a) -> IO a

Description#

Callback failures and cancellation keep their original exception class. Incomplete cleanup retains a CleanupRecovery in the exception context; use tryTmux and cleanupRecoveries to keep that responsibility reachable.

Referenced declarations#

Guides#

Pages that discuss withRuntime.

Esc

Type to search.

Reference previewOpen reference