grantCredit method

void grantCredit(
  1. int credit
)

Grants credit additional outbound bytes (from a channel.window), and flushes any queued writes that now fit.

Implementation

void grantCredit(int credit) {
  _credit += credit;
  _flush();
}