MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / Timeout

Class Timeout

tools/filelock.py:92–108  ·  view source on GitHub ↗

Raised when the lock could not be acquired in *timeout* seconds.

Source from the content-addressed store, hash-verified

90# Exceptions
91# ------------------------------------------------
92class Timeout(TimeoutError):
93 """
94 Raised when the lock could not be acquired in *timeout*
95 seconds.
96 """
97
98 def __init__(self, lock_file):
99 """
100 """
101 #: The path of the file lock.
102 self.lock_file = lock_file
103 return None
104
105 def __str__(self):
106 temp = "The file lock '{}' could not be acquired."\
107 .format(self.lock_file)
108 return temp
109
110
111# Classes

Callers 1

acquireMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected