effect-io-ai

Package: effect
Module: RequestResolver

RequestResolver.makeBatched

Constructs a data source from a function taking a collection of requests.

Signature

declare const makeBatched: <A extends Request.Request<any, any>, R>(run: (requests: NonEmptyArray<A>) => Effect.Effect<void, never, R>) => RequestResolver<A, R>

Source

Since v2.0.0