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 serializable closures #43

Merged
merged 4 commits into from
Sep 19, 2023
Merged

Conversation

achille-roussel
Copy link
Contributor

@achille-roussel achille-roussel commented Sep 19, 2023

This PR adds support for serializing closures.

Signed-off-by: Achille Roussel <[email protected]>
Signed-off-by: Achille Roussel <[email protected]>
Signed-off-by: Achille Roussel <[email protected]>
Comment on lines +119 to +120
// TODO: can we figure out a way to know when we are unwinding the
// stack and only recover then so we don't alter the panic stack?
Copy link
Contributor

Choose a reason for hiding this comment

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

Get the context from gls and then check the resume flag?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We have the context at this stage in c.ctx 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It doesn't work entirely, when the coroutine is stopped we don't set resume=true; let's look into it in a different PR

Signed-off-by: Achille Roussel <[email protected]>
@achille-roussel achille-roussel merged commit b75d687 into main Sep 19, 2023
2 checks passed
@achille-roussel achille-roussel deleted the serializable-closures branch September 19, 2023 21:55
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