Server.fromJava
Borrows Java without closing it. The bound covers this facade only; transport capacity and interruption remain the owner's responsibility.
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: Java
Server , maxConcurrentCalls: Int = 4 ): Resource[F, Server[F]] -
Description#
direct.Serveris opaque, so a borrowed handle and an owned one are the same runtime object. Release here tears down only this scope's ownExecution(its semaphores and supervised fibers); it never callsclose()on the borrowed handle, which isresource's job alone.- Parameters
-
-
java ( Java
Server ) -
maxConcurrentCalls ( Int )
-
Discussed in Ownership