transform(
generator: AsyncGenerator<string>,
options: Partial<CallOptions>
): AsyncGenerator<| Name | Type | Description |
|---|---|---|
generator* | AsyncGenerator<string> | |
options* | Partial<CallOptions> |
Default implementation of transform, which buffers input and then calls stream. Subclasses should override this method if they can start producing output while input is still being generated.