feat: add actor interop operators#22
Merged
Merged
Conversation
Add ActorInterop module with subscribeActor, flatMapActor, mapActor, and ofActor operators for bridging Fable.Actor with Fable.Reactive. Make the module internal and expose operators through the Reactive facade. Change ofActor to return actor/observable pair (subject pattern). Update Fable.Actor to 5.0.0-rc.8 and use qualified Actor.spawn/kill/call throughout. Update CI workflow and justfile for simplified release flow. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Use spawnLinked with a monitor actor so that if the processing actor crashes, the error is forwarded downstream as OnErrorAsync instead of being silently dropped. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Supervision-aware variant of flatMapActor where a caller-provided decider controls crash behavior: Escalate forwards as OnError (stream terminates), Stop drops the crashed item and kills the actor, Restart respawns the actor for future items. flatMapActor is now defined as flatMapActorSupervised with always-Escalate. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ActorInteropmodule bridgingFable.ActorwithFable.ReactiveobservablessubscribeActor(sink to actor),flatMapActor(fire-and-forget merge),mapActor(backpressured request-reply),ofActor(actor-backed subject)Reactivefacade module, consistent with existing codebase patternsFable.Actorto 5.0.0-rc.8 with qualifiedActor.spawn/kill/callusage throughoutTest plan
🤖 Generated with Claude Code