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

feature request: process interruption #3

Open
quantverse opened this issue May 9, 2019 · 5 comments
Open

feature request: process interruption #3

quantverse opened this issue May 9, 2019 · 5 comments
Assignees

Comments

@quantverse
Copy link

Is it possible to implement process interruption in a similar way as in simpy?

@garro95
Copy link
Owner

garro95 commented May 9, 2019

What should it do?

@quantverse
Copy link
Author

@garro95
Copy link
Owner

garro95 commented May 14, 2019

Isn't it like yielding an Effect::Event(0.0, other), other being the other process you want to interrupt?

@garro95
Copy link
Owner

garro95 commented May 14, 2019

Maybe we can make the context be a Result and make it an Err() when the woken up process is interrupted and maybe in other situations, waiting it to be what we pass to the process when resuming with the argument.

@quantverse
Copy link
Author

I really like the idea with Result actually...so I guess this has to wait until generator resume arguments are implemented...

@garro95 garro95 self-assigned this Jun 6, 2020
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

No branches or pull requests

2 participants