Core LibraryAPI Reference

Choose documentation 1

latest

Current version

latest
English

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

method libtmux-scala latest

Server.fromJava

Package io.github.libtmux.scaladsl.cats.Server.fromJava io.github.libtmux.scaladsl.cats

Borrows Java without closing it. The bound covers this facade only; transport capacity and interruption remain the owner's responsibility.

View as Markdown

Source and package
Module
io.github.libtmux.scaladsl.cats
Declared in
Server
Package
io.github.libtmux:libtmux-scala_3
Source
libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Server.scala
Scala method declarations Declares a method, with its name, parameter lists and return type. Language documentation fromJava[F[_]: Async]( java: JavaServer, maxConcurrentCalls: Int = 4 ): Resource[F, Server[F]]
method [source]

Description#

direct.Server is opaque, so a borrowed handle and an owned one are the same runtime object. Release here tears down only this scope's own Execution (its semaphores and supervised fibers); it never calls close() on the borrowed handle, which is resource 's job alone.

Parameters

Discussed in Ownership

Esc

Type to search.