Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FiberRef<A> subtype of Effect<A> #3577

Merged
merged 5 commits into from
Sep 10, 2024

Conversation

KhraksMamtsov
Copy link
Contributor

Type

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

The FiberRef<A> is now a subtype of Effect<A>. This change simplifies handling of deferred values, removing the need for explicit call FiberRef.get.

import { Effect, FiberRef } from "effect"

Effect.gen(function* () {
  const fiberRef = yield* FiberRef.make("value")

  const before = yield* FiberRef.get(fiberRef)
  const after = yield* fiberRef
})

Related

  • Related Issue #
  • Closes #

Copy link

changeset-bot bot commented Sep 9, 2024

🦋 Changeset detected

Latest commit: 1e09844

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

This PR includes changesets to release 31 packages
Name Type
effect Minor
@effect/cli Major
@effect/cluster-browser Major
@effect/cluster-node Major
@effect/cluster-workflow Major
@effect/cluster Major
@effect/experimental Major
@effect/opentelemetry Major
@effect/platform-browser Major
@effect/platform-bun Major
@effect/platform-node-shared Major
@effect/platform-node Major
@effect/platform Major
@effect/printer-ansi Major
@effect/printer Major
@effect/rpc-http Major
@effect/rpc Major
@effect/schema Major
@effect/sql-d1 Major
@effect/sql-drizzle Major
@effect/sql-kysely Major
@effect/sql-mssql Major
@effect/sql-mysql2 Major
@effect/sql-pg Major
@effect/sql-sqlite-bun Major
@effect/sql-sqlite-node Major
@effect/sql-sqlite-react-native Major
@effect/sql-sqlite-wasm Major
@effect/sql Major
@effect/typeclass Major
@effect/vitest Major

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

@KhraksMamtsov
Copy link
Contributor Author

Hmm, Micro tests looks flaky

@tim-smart
Copy link
Contributor

Hmm, Micro tests looks flaky

Seems like it, will take a look in another PR. Thanks!

@tim-smart tim-smart merged commit 7e4a0cd into Effect-TS:next-minor Sep 10, 2024
11 checks passed
github-actions bot pushed a commit that referenced this pull request Sep 10, 2024
Co-authored-by: maksim.khramtsov <[email protected]>
github-actions bot pushed a commit that referenced this pull request Sep 10, 2024
Co-authored-by: maksim.khramtsov <[email protected]>
github-actions bot pushed a commit that referenced this pull request Sep 10, 2024
Co-authored-by: maksim.khramtsov <[email protected]>
github-actions bot pushed a commit that referenced this pull request Sep 10, 2024
Co-authored-by: maksim.khramtsov <[email protected]>
github-actions bot pushed a commit that referenced this pull request Sep 11, 2024
Co-authored-by: maksim.khramtsov <[email protected]>
github-actions bot pushed a commit that referenced this pull request Sep 11, 2024
Co-authored-by: maksim.khramtsov <[email protected]>
@github-actions github-actions bot mentioned this pull request Sep 11, 2024
github-actions bot pushed a commit that referenced this pull request Sep 12, 2024
Co-authored-by: maksim.khramtsov <[email protected]>
github-actions bot pushed a commit that referenced this pull request Sep 12, 2024
Co-authored-by: maksim.khramtsov <[email protected]>
github-actions bot pushed a commit that referenced this pull request Sep 13, 2024
Co-authored-by: maksim.khramtsov <[email protected]>
github-actions bot pushed a commit that referenced this pull request Sep 13, 2024
Co-authored-by: maksim.khramtsov <[email protected]>
github-actions bot pushed a commit that referenced this pull request Sep 13, 2024
Co-authored-by: maksim.khramtsov <[email protected]>
github-actions bot pushed a commit that referenced this pull request Sep 13, 2024
Co-authored-by: maksim.khramtsov <[email protected]>
github-actions bot pushed a commit that referenced this pull request Sep 13, 2024
Co-authored-by: maksim.khramtsov <[email protected]>
github-actions bot pushed a commit that referenced this pull request Sep 13, 2024
Co-authored-by: maksim.khramtsov <[email protected]>
github-actions bot pushed a commit that referenced this pull request Sep 15, 2024
Co-authored-by: maksim.khramtsov <[email protected]>
tim-smart pushed a commit that referenced this pull request Sep 15, 2024
Co-authored-by: maksim.khramtsov <[email protected]>
@KhraksMamtsov KhraksMamtsov deleted the fiber-ref-effect branch September 25, 2024 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants