Endpoint

final class Endpoint[A, B](val request: () => A, val response: () => B)
class Object
trait Matchable
class Any

Value members

Concrete methods

def send(a: A): Resource[Effect, B]

This method returns a Resource[Effect, B] unlike sendAndConsume this is always safe to use in regard to laziness

This method returns a Resource[Effect, B] unlike sendAndConsume this is always safe to use in regard to laziness

def sendAndConsume(request: A): Effect[B]

This method might suffer from leaking resource if the handling of the underlying resource is lazy. Use send instead in this case.

This method might suffer from leaking resource if the handling of the underlying resource is lazy. Use send instead in this case.

Deprecated methods

@deprecated("6.0.0", "This calls sendAndConsume which is potentially unsafe. Use sendAndConsume if you don\'t suffer any issues in regard to laziness, else use send")
def apply(request: A): Effect[B]
Deprecated

Concrete fields

val request: () => A
val response: () => B