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

Implement progressive call results #53

Merged

Conversation

muzzammilshahid
Copy link
Member

download..

@muzzammilshahid muzzammilshahid force-pushed the progressive-call-results branch 2 times, most recently from 9269cf5 to 8b674ce Compare September 20, 2024 13:08
import (
"context"
"fmt"
"github.com/xconnio/xconn-go"
Copy link
Member

Choose a reason for hiding this comment

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

should be arranged correctly. the CI should have failed

session.go Outdated
req <- &CallResponse{msg: result}
progress, _ := result.Details()["progress"].(bool)
if progress {
if progressHandler, exists := s.progressHandlers.Load(result.RequestID()); exists {
Copy link
Member

Choose a reason for hiding this comment

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

should be assigned first and tested later.

receiveProgress, _ := invocation.Details()["receive_progress"].(bool)
if receiveProgress {
inv.SendProgress = func(arguments []any, kwArguments map[string]any) error {
yield := messages.NewYield(invocation.RequestID(), map[string]any{"progress": true}, arguments, kwArguments)
Copy link
Member

Choose a reason for hiding this comment

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

should refer to the const that's created in the dealer.go

@muzzammilshahid muzzammilshahid merged commit 8226aa1 into xconnio:main Sep 20, 2024
1 check passed
@muzzammilshahid muzzammilshahid deleted the progressive-call-results branch September 20, 2024 14:11
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