Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/redis/redis-py
/ monotonic
Method
monotonic
tests/test_lock.py:17–18 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
15
self.sleeps = []
16
17
def
monotonic(self):
18
return
self.now
19
20
def
sleep(self, sleep):
21
self.sleeps.append(sleep)
Callers
15
_wait_for_bgsave
Method · 0.80
wait_for_message
Function · 0.80
test_get_message_timeout_is_respected
Method · 0.80
test_parse_response_timeout_propagation
Method · 0.80
test_get_message_timeout_zero_returns_immediately
Method · 0.80
test_get_message_timeout_none_blocks
Method · 0.80
test_listen_blocks_longer_than_socket_timeout
Method · 0.80
test_get_message_block_indefinitely_past_socket_timeout
Method · 0.80
test_parse_response_block_true_blocks_past_socket_timeout
Method · 0.80
test_get_sharded_message_timeout_is_respected
Method · 0.80
test_get_sharded_message_timeout_zero_returns_immediately
Method · 0.80
test_resubscribe_shard_channels_different_slots_same_node
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected