Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

blocking.Runtime.new

Rust
  • Python Unavailable
  • TypeScript Unavailable
  • Rust
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
blocking
Declared in
Runtime
Package
libtmux
Source
crates/libtmux/src/blocking.rs
new ( ) → Result<Self, Error>
method [source]
method [source]
new

Build a single-threaded runtime.

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.

0 declared, 0 inherited

Esc

Type to search.