Skip to content

Centralize FusionInterrupt handling in embedding layer#521

Merged
toddjonker merged 3 commits intoion-fusion:mainfrom
DimitriosDalaklidhs:feature/isolate-interrupt-handling-517
Apr 14, 2026
Merged

Centralize FusionInterrupt handling in embedding layer#521
toddjonker merged 3 commits intoion-fusion:mainfrom
DimitriosDalaklidhs:feature/isolate-interrupt-handling-517

Conversation

@DimitriosDalaklidhs
Copy link
Copy Markdown
Contributor

Closes #517

Introduces EvalTask<T> functional interface and withEvaluator() helper
on StandardTopLevel to centralize FusionInterrupt → FusionInterruptedException
translation in one place.

All call sites in StandardTopLevel and StandardRuntime now use
withEvaluator(), including the previously missing ionize and
ionizeMaybe methods in StandardRuntime.

Comment thread runtime/src/main/java/dev/ionfusion/fusion/StandardRuntime.java
Comment thread runtime/src/main/java/dev/ionfusion/fusion/StandardTopLevel.java
@toddjonker
Copy link
Copy Markdown
Member

@DimitriosDalaklidhs Can you please do a (non-merge) rebase and force-push a single commit with the relevant change? This is currently on a lengthy fork of the upstream mainline. The main impact is that when I merge the change I have to filter through all the previously-applied and intermediate commit logs.

Comment thread runtime/src/main/java/dev/ionfusion/fusion/StandardTopLevel.java Outdated
@DimitriosDalaklidhs DimitriosDalaklidhs force-pushed the feature/isolate-interrupt-handling-517 branch from aeb1ae9 to 922ab50 Compare April 13, 2026 20:46
Copy link
Copy Markdown
Member

@toddjonker toddjonker left a comment

Choose a reason for hiding this comment

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

I made some small formatting changes, and this is good to go.

@toddjonker
Copy link
Copy Markdown
Member

Oh weird, looks like GitHub is requiring a non-me reviewer since I committed a change to the PR. So this is back at you @SharkBaitDLS

@toddjonker toddjonker requested a review from SharkBaitDLS April 14, 2026 18:22
@toddjonker toddjonker merged commit 2534448 into ion-fusion:main Apr 14, 2026
4 checks 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.

Isolate interrupt handling for the embedding layer

3 participants