(request: Request, context?: Context.Context<never> | undefined)
| 299 | // avoid an unhandled rejection, requests will still observe the failure |
| 300 | handlerPromise.catch(constVoid) |
| 301 | function handler(request: Request, context?: Context.Context<never> | undefined): Promise<Response> { |
| 302 | if (handlerCache) { |
| 303 | return handlerCache(request, context) |
| 304 | } |
| 305 | return handlerPromise.then((f) => f(request, context)) |
| 306 | } |
| 307 | return { dispose, handler } as const |
| 308 | } |
| 309 |