Core Library0.xAPI reference

Choose documentation 1

pr-173

Current version

pr-173
English

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

MoreLess about this notice

struct libtmux-elixir

Deadline

A node-local monotonic deadline shared by every stage of an operation.

Source and package
Qualified name
LibTmux.Deadline
Module
LibTmux
Package
libtmux
Source
lib/libtmux/deadline.ex
struct LibTmux.Deadline

Description

Construct it once at admission. Passing it between stages preserves the original budget; it is not a portable timestamp or a wire value.

Members4 members

  • new/2 function Creates a deadline from a positive millisecond budget.
  • option/0: option() :: {:now, integer()} typealias An optional node-local monotonic clock sample in milliseconds, used instead of sampling the current clock.
  • remaining/2 function Returns the remaining milliseconds, clamped to zero after expiry.
  • t/0 typealias A node-local monotonic millisecond cutoff. Share it between stages; never serialize it as a portable deadline.

Guides

task material

Pages that discuss Deadline.

Esc
Search in

Type to search.

Reference previewOpen reference