Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

struct libtmux-rs latest

Runtime

A runtime for calling this crate's async methods from ordinary code.

Source and package
Qualified name
libtmux::blocking::Runtime
Module
blocking
Package
libtmux
Source
crates/libtmux/src/blocking.rs
struct blocking.Runtime

Description#

One runtime serves any number of servers and handles. Keep it alive for as long as you use them: the executor reaps tmux child processes on it, so dropping it early turns deterministic cleanup into best-effort cleanup.

Members3#

Common operations1#

  • try_run method Run one future to completion, or say why it cannot be run here.

Other members2#

  • new method Build a single-threaded runtime.
  • run method Run one future to completion.
Esc

Type to search.

Reference previewOpen reference