Repository navigation
Add a direct backend for plain blocking code - #277
Merged
Merged
Conversation
Add `sage-client-direct`, a client for plain blocking code on virtual threads with no effect library dependency. Each command blocks the calling thread and returns its result, failures are thrown, and interrupting the thread cancels the wait. - `sage-compat-direct` binds `kyo.compat` with plain JDK code. Long flatMap chains continue on a fresh virtual thread, and lock bodies always run on the caller's thread so they keep its thread-local context. - Streaming helpers return `Iterator`, subscriptions return a closeable blocking iterator, and `onMessage`, `onPatternMessage`, and `onShardMessage` deliver messages to a callback on a background virtual thread. - Add the direct cells to CI, the examples, the benchmarks, and the docs, plus two tests for interrupted closes in the shared runtime.
ghostdogpr
force-pushed
the
direct-backend
branch
from
October 24, 2026 08:35
0b1687f to
321ba1e
Compare
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.
Adds
sage-client-direct, a client for plain blocking code with no effect library dependency. Each command blocks the calling thread and returns its result, failures are thrown, and interrupting the thread cancels the wait. It is meant for virtual threads, for example in frameworks such as Eezo that serve each request on one.sage-compat-directbindskyo.compatwith plain JDK code and passes the conformance suite. LongflatMapchains continue on a fresh virtual thread to stay stack-safe, and lock bodies always run on the caller's thread so they keep its thread-local context.Iterator. Subscriptions return a closeable blocking iterator, andonMessage,onPatternMessage, andonShardMessagedeliver messages to a callback on a background virtual thread.