Skip to content

feat(ff-effect): add asyncClient utility#52

Open
fdarian wants to merge 2 commits intomainfrom
feat/async-client
Open

feat(ff-effect): add asyncClient utility#52
fdarian wants to merge 2 commits intomainfrom
feat/async-client

Conversation

@fdarian
Copy link
Owner

@fdarian fdarian commented Feb 10, 2026

Summary

  • Add asyncClient function that converts Effect-based clients to async/await clients
  • Creates a ManagedRuntime from a provided layer, resolves the client effect, and wraps all methods with a recursive Proxy to return Promises
  • Includes dispose() for runtime cleanup
  • Exports AsyncClient type for external use

Test plan

  • Single-level method wrapping
  • Nested group method wrapping
  • Error propagation (Effect.fail → rejected Promise)
  • Dispose cleanup
  • Type safety with expectTypeOf
  • Build succeeds

@fdarian fdarian changed the title feat: add asyncClient utility feat(ff-effect): add asyncClient utility Feb 10, 2026
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.

1 participant