#Return result/option from a system
5 messages · Page 1 of 1 (latest)
Yep! Check out this example: https://github.com/bevyengine/bevy/blob/latest/examples/ecs/system_piping.rs
There's also a bevy sys fail crate to add sugar
Also there is the traditional approach
(|| -> Result<A, B> {
f1()?;
f2()?;
Ok(f3()?)
})().unwrap()
Thank you guys! ❤️