1# Copyright 2024 The Chromium Authors 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5from __future__ import annotations 6 7from typing import TYPE_CHECKING 8 9from crossbench.action_runner.action.action_type import ActionType 10from crossbench.action_runner.action.base_duration import DurationAction 11 12if TYPE_CHECKING: 13 from crossbench.action_runner.base import ActionRunner 14 from crossbench.runner.run import Run 15 16 17class WaitAction(DurationAction): 18 TYPE: ActionType = ActionType.WAIT 19 20 def run_with(self, run: Run, action_runner: ActionRunner) -> None: 21 action_runner.wait(run, self) 22