Effect-TS / effect

An ecosystem of tools to build robust applications in TypeScript
https://effect.website
MIT License
7.74k stars 246 forks source link

Return sequential cause from `Effect.acquireUseRelease` #3879

Closed IMax153 closed 3 weeks ago

IMax153 commented 4 weeks ago

Type

Description

Given that use and release are executed sequentially, it makes more sense to fail with Cause.sequential if both use and release fail.

Related

changeset-bot[bot] commented 4 weeks ago

🦋 Changeset detected

Latest commit: 5142e998b11224f749fdf754259430728fa2cfef

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 34 packages | Name | Type | | ------------------------------- | ----- | | effect | Patch | | @effect/cli | Patch | | @effect/cluster-browser | Patch | | @effect/cluster-node | Patch | | @effect/cluster-workflow | Patch | | @effect/cluster | Patch | | @effect/experimental | Patch | | @effect/opentelemetry | Patch | | @effect/platform-browser | Patch | | @effect/platform-bun | Patch | | @effect/platform-node-shared | Patch | | @effect/platform-node | Patch | | @effect/platform | Patch | | @effect/printer-ansi | Patch | | @effect/printer | Patch | | @effect/rpc-http | Patch | | @effect/rpc | Patch | | @effect/sql-clickhouse | Patch | | @effect/sql-d1 | Patch | | @effect/sql-drizzle | Patch | | @effect/sql-kysely | Patch | | @effect/sql-libsql | Patch | | @effect/sql-mssql | Patch | | @effect/sql-mysql2 | Patch | | @effect/sql-pg | Patch | | @effect/sql-sqlite-bun | Patch | | @effect/sql-sqlite-node | Patch | | @effect/sql-sqlite-react-native | Patch | | @effect/sql-sqlite-wasm | Patch | | @effect/sql | Patch | | @effect/typeclass | Patch | | @effect/vitest | Patch | | @effect/ai | Patch | | @effect/ai-openai | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR