MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / isStreamingHandler

Function isStreamingHandler

packages/aws-serverless/src/sdk.ts:142–146  ·  view source on GitHub ↗
(handler: Handler | StreamifyHandler)

Source from the content-addressed store, hash-verified

140export const AWS_HANDLER_STREAMING_RESPONSE = 'response';
141
142function isStreamingHandler(handler: Handler | StreamifyHandler): handler is StreamifyHandler {
143 return (
144 (handler as unknown as Record<symbol, unknown>)[AWS_HANDLER_STREAMING_SYMBOL] === AWS_HANDLER_STREAMING_RESPONSE
145 );
146}
147
148export function wrapHandler<TEvent, TResult>(
149 handler: Handler<TEvent, TResult>,

Callers 1

wrapHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected