const doesntWork = yield* _(
Effect.forEach(
some.items,
(item) =>
Schema.parse(Schema.array(someSchema))(
yield* _(
Effect.tryPromise(() =>
fetch(
`someUrl`
).then((response) => response.json())
)),
{ errors: "all" }
),
{ concurrency: "unbounded" }
)
);
const doesntWork = yield* _(
Effect.forEach(
some.items,
(item) =>
Schema.parse(Schema.array(someSchema))(
yield* _(
Effect.tryPromise(() =>
fetch(
`someUrl`
).then((response) => response.json())
)),
{ errors: "all" }
),
{ concurrency: "unbounded" }
)
);