Feature request: wait for event with timeout
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 155
- Forks
- 182
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 6
Description
It would be very nice to have a way to expect an event with a timeout. What I would like to do is have a launch file that runs an action when a LifecycleNode becomes active, but only waits 1 second before it gives up.
Something like this is already implemented in launch_testing.actions.test.Test, and it would be nice to have as a separate Action.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading launch_testing.actions.test.Test and the existing launch action APIs to understand how event waiting and timeouts are represented. Define the separate Action's expected launch-file behavior, including the one-second timeout, and verify that it waits for a LifecycleNode activation event before giving up.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100