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

Fallible systems #286

Closed
simast opened this issue Sep 25, 2021 · 0 comments
Closed

Fallible systems #286

simast opened this issue Sep 25, 2021 · 0 comments

Comments

@simast
Copy link

simast commented Sep 25, 2021

Is there any way to implement fallible systems with legion? By fallible I mean avoiding .unwrap() and panics in the system and instead marshal the error back to the thread that actually started Schedule::execute.

So you could take that error and do something meaningful with it - maybe show an UI message box, log to console or retry etc.

Asking this as I though this is rather neat feature that seems to be supported natively in the new Sparsey ECS:

https://github.com/LechintanTudor/sparsey/blob/64367b8c1af647f09401d058334a42edaf231018/examples/errors.rs#L27-L32

@simast simast closed this as completed Oct 30, 2021
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

1 participant