1 parent 5600fb2 commit e22821fCopy full SHA for e22821f
2 files changed
docs/resources/images/race_timeout.png
44.8 KB
examples/README.md
@@ -65,3 +65,13 @@ Compile the behavior tree into a [graphviz](https://graphviz.org/) compatible [D
65
<p align="center">
66
<img src="https://github.com/Sollimann/bonsai/blob/main/docs/resources/images/attack_drone.png" width="700">
67
</p>
68
+
69
+## Behavior Timeout (example for Race behavior and long-running jobs)
70
71
+This simple example shows an example of using the Race behavior to time out a long-running job that takes a random amount of time to complete.
72
73
+`cargo run --bin race_timeout`
74
75
+<p align="center">
76
+ <img src="https://github.com/Sollimann/bonsai/blob/main/docs/resources/images/race_timeout.png" width="700">
77
+</p>
0 commit comments