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-ts latest

Session.refreshed

This session, read again at a new instant.

Source and package
Qualified name
Session.refreshed
Module
session
Declared in
Session
Package
libtmux
Source
packages/libtmux/src/session.ts
Other languages
PowerShell Julia Elixir Python Ruby Lua RustGoJavaC#C++ Swift Kotlin Scala F#
refreshed(): Promise<Session>

Description#

The receiver keeps the instant it was read at; the answer is a new handle on a new snapshot, so neither reading contradicts itself.

Examples#

const later = await session.refreshed();
later.windows.count();

In other ports#

Read a session again

Equivalents of Read a session again in other languages
Language Equivalent
Python libtmux.Session.refresh
Rust session.Session.refresh
Go tmux.Session.Refresh
Java io.github.libtmux.Session.refresh
C# LibTmux.Session.RefreshAsync
C++ libtmux::Session::refresh
Swift reads are snapshots; Server.snapshot() takes a new one rather than refreshing a handle

No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Elixir, Kotlin, Scala or F#.

Esc

Type to search.

Reference previewOpen reference