Skip to content

Commit e22821f

Browse files
add section to readme for race timeout example
1 parent 5600fb2 commit e22821f

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

44.8 KB
Loading

examples/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,13 @@ Compile the behavior tree into a [graphviz](https://graphviz.org/) compatible [D
6565
<p align="center">
6666
<img src="https://github.com/Sollimann/bonsai/blob/main/docs/resources/images/attack_drone.png" width="700">
6767
</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

Comments
 (0)