Core LibraryunreleasedAPI Reference

Choose documentation 1

latest

Current version

latest
English

Unreleased io.github.libtmux:libtmux-clojure has not been released. Its API may change during development. This site's structure and URLs may change too.

Clojure API

module libtmux-clojure latest

libtmux.async

Bounded owned workers from runtime! and cancellable submit! tasks.

Source and package
Qualified name
libtmux.async
Module
libtmux.async
Package
io.github.libtmux:libtmux-clojure
Source
libtmux-clojure/src/main/clojure/libtmux/async.clj

Description#

completion-stage and then! expose Java interop with explicit scheduling.

Members8#

Common operations4#

  • cancel! function Requests cancellation. The first accepted cancellation reason wins.
  • runtime! function Creates a closeable runtime owning bounded work, wait and callback lanes.
  • then! function Returns a read-only CompletionStage applying f after successful task cleanup.
  • submit! function Submits a zero-argument function with the caller's dynamic bindings.

Other members4#

  • close-runtime! function Cancels owned tasks and callbacks and shuts down the runtime's executors.
  • completion-stage function Returns a read-only CompletionStage completed after worker cleanup.
  • task-kind function Returns the declared :ordinary or :wait lane without waiting for the task.
  • task-state function Reads task progress: :queued, :running, :cancelling, :cleanup-pending,

Guides#

Pages that discuss libtmux.async.

Esc

Type to search.

Reference previewOpen reference