TClientSink::genSink

public function genSink<TSinkType, TFinalResponseType>(
  HH\AsyncGenerator<null, TSinkType, void> $payload_generator,
  (function(?TSinkType, ?Exception): (string, ?bool)) $payloadEncode,
  (function(?string, ?Exception): TFinalResponseType) $finalResponseDecode,
): Awaitable<TFinalResponseType>;

Parameters

  • HH\AsyncGenerator<null,TSinkType, void> $payload_generator
  • (function(?TSinkType, ?Exception): (string, ?bool)) $payloadEncode
  • (function(?string, ?Exception): TFinalResponseType) $finalResponseDecode

Returns