Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/dronekit/dronekit-python
/ wait_for
Function
wait_for
dronekit/test/__init__.py:31–36 ·
view source on GitHub ↗
(condition, time_max)
Source
from the content-addressed store, hash-verified
29
return
test
30
31
def
wait_for(condition, time_max):
32
time_start = time.time()
33
while
not condition():
34
if
time.time() - time_start > time_max:
35
break
36
time.sleep(0.1)
Callers
3
test_110
Function · 0.90
arm_and_takeoff
Function · 0.90
test_location_notify
Function · 0.90
Calls
no outgoing calls
Tested by
3
test_110
Function · 0.72
arm_and_takeoff
Function · 0.72
test_location_notify
Function · 0.72