MCPcopy
hub / github.com/nestjs/nest / next

Method next

packages/microservices/server/server-grpc.ts:412–421  ·  packages/microservices/server/server-grpc.ts::ServerGrpc.next
(value)

Source from the content-addressed store, hash-verified

410 subscription.add(
411 source.subscribe({
412 next(value) {
413 if (writing) {
414 writing = call.write(value);
415 } else {
416 class="cm">// If we canclass="st">'t write, that's because we need to
417 class="cm">// wait for the drain event before we can write again
418 class="cm">// buffer the value and wait for the drain event
419 valuesWaitingToBeDrained.push(value);
420 }
421 },
422 error(err) {
423 if (valuesWaitingToBeDrained.length === 0) {
424 class="cm">// We're not waiting for a drain event, so we can just

Callers 15

getConnectionHandlerMethod · 0.45
createMethod · 0.45
getRootModuleMethod · 0.45
registerErrorListenerMethod · 0.45
registerCloseListenerMethod · 0.45
registerReadyListenerMethod · 0.45
registerEndListenerMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected