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.run

Run one future to completion.

Source and package
Qualified name
libtmux::blocking::Runtime::run
Module
blocking
Declared in
Runtime
Package
libtmux
Source
crates/libtmux/src/blocking.rs
pub fn run<F: Future>(&self, future: F) -> F::Output

Description#

Panics

Panics when called from inside an async context, because a runtime cannot be driven from within another. Await the future directly there.

Type parameters
  • F #

    Bound Future

Parameters
Esc

Type to search.

Reference previewOpen reference