FS2Channel

jsonrpclib.fs2.FS2Channel
See theFS2Channel companion trait
object FS2Channel

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
FS2Channel.type

Members list

Value members

Concrete methods

def resource[F[_] : Concurrent](bufferSize: Int, cancelTemplate: Option[CancelTemplate]): Resource[F, FS2Channel[F]]

Creates a new FS2Channel[F] as a managed resource with a configurable buffer size for bidirectional message processing.

Creates a new FS2Channel[F] as a managed resource with a configurable buffer size for bidirectional message processing.

Optionally, a CancelTemplate can be provided to support client-initiated cancellation of inflight requests via a dedicated cancellation endpoint.

Value parameters

bufferSize

Size of the internal outbound message queue (default: 2048)

cancelTemplate

Optional handler that defines how to decode and handle cancellation requests

Attributes

Returns

A Resource that manages the lifecycle of the channel and its internal supervisor

def stream[F[_] : Concurrent](bufferSize: Int, cancelTemplate: Option[CancelTemplate]): Stream[F, FS2Channel[F]]

Deprecated methods

def apply[F[_] : Concurrent](bufferSize: Int, cancelTemplate: Option[CancelTemplate]): Stream[F, FS2Channel[F]]

Attributes

Deprecated
true