class GRPC::Transport::SendBudget

Overview

Broadcasts capacity changes to all waiting senders. Reservation happens outside nghttp2 callbacks; releasing it never blocks.

Defined in:

grpc/transport/send_budget.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(limit : Int64) #

[View source]

Instance Method Detail

def acquire(bytes : Int32, closed : ::Channel(Nil), ctx : ClientContext | Nil) : Nil #

[View source]
def release(bytes : Int32) : Nil #

[View source]