Skip to content

Commit

Permalink
doc/development: document await_resources
Browse files Browse the repository at this point in the history
Document how await_resources inside a strategy can be used to wait for
the availability of a resource.

Signed-off-by: Rouven Czerwinski <[email protected]>
  • Loading branch information
Emantor committed May 21, 2024
1 parent 9e0562e commit 88f1ba7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,12 @@ while the `shell` state uses the barebox state to cycle the board and then boot
the linux kernel.
The `off` state switches the power off.

Oftentimes it is also necessary to wait for specific resources to appear before
a transition can be continued. The `await_resources` function of the target
implements this functionality, it expects a list of resources to wait for and
optionally takes a timeout and whether the resource should be available or
unavailable.


Tips for Writing and Debugging Tests
------------------------------------
Expand Down

0 comments on commit 88f1ba7

Please sign in to comment.