ManagedChannelBuilderOps

final class ManagedChannelBuilderOps[MCB <: ManagedChannelBuilder[MCB]](val builder: MCB) extends AnyVal
class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def resource[F[_]](implicit F: Sync[F]): Resource[F, ManagedChannel]

Builds a ManagedChannel into a resource. The managed channel is shut down when the resource is released. Shutdown is as follows:

Builds a ManagedChannel into a resource. The managed channel is shut down when the resource is released. Shutdown is as follows:

  1. We request an orderly shutdown, allowing preexisting calls to continue without accepting new calls. 2. We block for up to 30 seconds on termination, using the blocking context 3. If the channel is not yet terminated, we trigger a forceful shutdown

For different tradeoffs in shutdown behavior, see {{resourceWithShutdown}}.

def resourceWithShutdown[F[_]](shutdown: ManagedChannel => F[Unit])(implicit F: Sync[F]): Resource[F, ManagedChannel]

Builds a ManagedChannel into a resource. The managed channel is shut down when the resource is released.

Builds a ManagedChannel into a resource. The managed channel is shut down when the resource is released.

Value parameters:
shutdown

Determines the behavior of the cleanup of the managed channel, with respect to forceful vs. graceful shutdown and how to poll or block for termination.

def stream[F[_]](implicit F: Async[F]): Stream[F, ManagedChannel]

Builds a ManagedChannel into a stream. The managed channel is shut down when the stream is complete. Shutdown is as follows:

Builds a ManagedChannel into a stream. The managed channel is shut down when the stream is complete. Shutdown is as follows:

  1. We request an orderly shutdown, allowing preexisting calls to continue without accepting new calls. 2. We block for up to 30 seconds on termination, using the blocking context 3. If the channel is not yet terminated, we trigger a forceful shutdown

For different tradeoffs in shutdown behavior, see {{streamWithShutdown}}.

def streamWithShutdown[F[_]](shutdown: ManagedChannel => F[Unit])(implicit F: Async[F]): Stream[F, ManagedChannel]

Builds a ManagedChannel into a stream. The managed channel is shut down when the stream is complete.

Builds a ManagedChannel into a stream. The managed channel is shut down when the stream is complete.

Value parameters:
shutdown

Determines the behavior of the cleanup of the managed channel, with respect to forceful vs. graceful shutdown and how to poll or block for termination.

Concrete fields

val builder: MCB