Repository navigation
feat(go)!: represent async values as chan - #1585
Open
rvolosatovs wants to merge 2 commits into
Open
rvolosatovs wants to merge 2 commits into
rvolosatovs wants to merge 2 commits into
Conversation
rvolosatovs
force-pushed
the
feat/go-channels
branch
4 times, most recently
from
October 26, 2026 18:18
c999f5d to
1d5ede9
Compare
rvolosatovs
force-pushed
the
feat/go-channels
branch
from
October 26, 2026 18:26
1d5ede9 to
0868917
Compare
rvolosatovs
enabled auto-merge
October 26, 2026 18:32
rvolosatovs
force-pushed
the
feat/go-channels
branch
2 times, most recently
from
October 26, 2026 18:35
714a5d1 to
bbcc432
Compare
rvolosatovs
disabled auto-merge
October 26, 2026 18:36
A `future<T>` is now a `<-chan T`, which receives the value once the future resolves and is closed afterwards, and a `stream<T>` is a `<-chan []T` of chunks, which is closed once the stream ends. The values cannot fail: as in Rust, a future never resolves after a failed read, and a stream ends. Readers of pending values return a deferred read alongside the value, like writers return a deferred write, and its error is reported on the client's error channel, renamed from `writeErrs__` to `errs__`, or logged by the server. The deferred read takes a `context.Context` and stops once it is done, so an unconsumed channel does not block it forever. The client reads with the invocation context, and the server cancels the context of the deferred parameter reads once the handler returned and the results were written. `IndexReader` gains `Buffered`, which a pending future read uses to reject data received after the value, like Rust does. This also fixes `future<u8>`, `future<list<u8>>` and futures held by resources, which did not compile before. Assisted-by: claude:claude-opus-5-5
The served function logged the handler error instead of the error returned by closing the parameter reader. Assisted-by: claude:claude-opus-5-5
rvolosatovs
force-pushed
the
feat/go-channels
branch
from
October 26, 2026 18:40
bbcc432 to
595b458
Compare
rvolosatovs
enabled auto-merge
October 26, 2026 18:46
This branch has not been deployed
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.
No description provided.