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

[core][combinators] workaround issue with nested boundaries #850

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

fwbrasil
Copy link
Collaborator

This PR applies the workaround identified by @hearnadam with an inline indirection. I think we should still keep #804 open to explore a more proper solution. Users might need to define methods with boundaries and the workaround can be confusing.

): Fiber[E, A] < (IO & Ctx) =
_run(v)

private[kyo] inline def _run[E, A: Flat, Ctx](inline v: => A < (Abort[E] & Async & Ctx))(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed offline, I don't think these can be private at all due to the inline... We may need to find a way to test only public inline functions in another namespace...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've just checked by moving AsyncTest to a kyoTest package and it seems ok.

@fwbrasil fwbrasil merged commit 0f3701d into main Nov 19, 2024
3 checks passed
@fwbrasil fwbrasil deleted the nested-boundaries branch November 19, 2024 02:42
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