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.

method libtmux-rs latest

Runtime.new

Build a single-threaded runtime.

Source and package
Qualified name
libtmux::blocking::Runtime::new
Module
blocking
Declared in
Runtime
Package
libtmux
Source
crates/libtmux/src/blocking.rs
pub fn new() -> Result<Self, Error>

Description#

Single-threaded is the right default here. The work is waiting on subprocesses, so extra threads buy nothing and would make a script's behavior depend on how many cores it happened to run on.

Errors

Returns an error when the operating system refuses the resources a runtime needs.

Esc

Type to search.

Reference previewOpen reference