Skip to content

feat(states): add readState result-builder reader with tests#27

Merged
anthony1810 merged 1 commit into
anthony1810:mainfrom
ThangKM:state_updatable
Jun 29, 2026
Merged

feat(states): add readState result-builder reader with tests#27
anthony1810 merged 1 commit into
anthony1810:mainfrom
ThangKM:state_updatable

Conversation

@ThangKM

@ThangKM ThangKM commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Changes:

  • Adds readState(_:) to StateUpdatable, letting callers read several @MainActor values in a single hop and get back a single value or a tuple. Backed by a new StateValueBuilder result builder using parameter packs for arbitrary arity. Tightens concurrency by making the protocol Sendable and its update/read blocks @Sendable.

@ThangKM ThangKM requested a review from anthony1810 June 25, 2026 09:20
@anthony1810 anthony1810 merged commit c7c6e8d into anthony1810:main Jun 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants