Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tox-dev/filelock
/ write_once
Function
write_once
tests/sqlite/async_helpers.py:40–42 ·
view source on GitHub ↗
(lock: AsyncReadWriteLock)
Source
from the content-addressed store, hash-verified
38
39
40
async
def
write_once(lock: AsyncReadWriteLock) -> None:
41
async
with
lock.write_lock(timeout=TASK_WAIT):
42
pass
43
44
45
def
pause_rollback(
Callers
3
test_closing_first_writer_preserves_next_writer
Function · 0.90
test_a_waiting_writer_goes_ahead_of_new_readers
Function · 0.90
test_a_canceled_waiting_writer_lets_readers_in
Function · 0.90
Calls
1
write_lock
Method · 0.45
Tested by
3
test_closing_first_writer_preserves_next_writer
Function · 0.72
test_a_waiting_writer_goes_ahead_of_new_readers
Function · 0.72
test_a_canceled_waiting_writer_lets_readers_in
Function · 0.72