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

Provide a Scope per server call (#3197) #3276

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

987Nabil
Copy link
Contributor

fixes #3197
/claim #3197

Comment on lines +95 to +96
val scope = Scope.unsafe.make
writeResponse(ctx, runtime, scope.use(exit), req)(releaseRequest)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this not close the scope before the response is written? So, for example, if a resource in the Scope is a scoped stream, it can close before being fully written to the response by being closed here when the handler finishes, and not when actually writing it is done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants