Definition at line 128 of file _time.py.
◆ __init__()
def grpc_testing._time.StrictRealTime.__init__ |
( |
|
self | ) |
|
◆ _activity()
def grpc_testing._time.StrictRealTime._activity |
( |
|
self | ) |
|
|
private |
◆ _call_at()
def grpc_testing._time.StrictRealTime._call_at |
( |
|
self, |
|
|
|
behavior, |
|
|
|
time |
|
) |
| |
|
private |
◆ _ensure_called_through()
def grpc_testing._time.StrictRealTime._ensure_called_through |
( |
|
self, |
|
|
|
time |
|
) |
| |
|
private |
◆ call_at()
def grpc_testing._time.StrictRealTime.call_at |
( |
|
self, |
|
|
|
behavior, |
|
|
|
time |
|
) |
| |
Adds a behavior to be called at a specific time.
Args:
behavior: A behavior to be called with no arguments.
time: The test time at which to call the behavior.
Returns:
A grpc.Future with which the call of the behavior may be cancelled
before it is executed.
Reimplemented from grpc_testing.Time.
Definition at line 178 of file _time.py.
◆ call_in()
def grpc_testing._time.StrictRealTime.call_in |
( |
|
self, |
|
|
|
behavior, |
|
|
|
delay |
|
) |
| |
Adds a behavior to be called after some time.
Args:
behavior: A behavior to be called with no arguments.
delay: A duration of time in seconds after which to call the behavior.
Returns:
A grpc.Future with which the call of the behavior may be cancelled
before it is executed.
Reimplemented from grpc_testing.Time.
Definition at line 175 of file _time.py.
◆ sleep_for()
def grpc_testing._time.StrictRealTime.sleep_for |
( |
|
self, |
|
|
|
duration |
|
) |
| |
Blocks for some length of test time.
Args:
duration: A duration of test time in seconds for which to block.
Reimplemented from grpc_testing.Time.
Definition at line 181 of file _time.py.
◆ sleep_until()
def grpc_testing._time.StrictRealTime.sleep_until |
( |
|
self, |
|
|
|
time |
|
) |
| |
Blocks until some test time.
Args:
time: The test time until which to block.
Reimplemented from grpc_testing.Time.
Definition at line 186 of file _time.py.
◆ time()
def grpc_testing._time.StrictRealTime.time |
( |
|
self | ) |
|
Accesses the current test time.
Returns:
The current test time (over which this object has authority).
Reimplemented from grpc_testing.Time.
Definition at line 172 of file _time.py.
◆ _active
grpc_testing._time.StrictRealTime._active |
|
private |
◆ _calling
grpc_testing._time.StrictRealTime._calling |
|
private |
◆ _state
grpc_testing._time.StrictRealTime._state |
|
private |
The documentation for this class was generated from the following file: