THE ORIONIS API
Build with clarity.
Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.
class documentation
Undocumented
| Async Method | __acquire |
Acquire the row-based database lock, polling until available. |
| Async Method | __aenter__ |
Acquire the lock before entering the protected block. |
| Async Method | __aexit__ |
Release the lock after leaving the protected block. |
| Method | __init__ |
Initialize the lock for key on backend. |
| Class Variable | __slots__ |
Undocumented |
| Instance Variable | _backend |
Undocumented |
| Instance Variable | _impl |
Undocumented |
| Instance Variable | _key |
Undocumented |
| Instance Variable | _owner |
Undocumented |
| Instance Variable | _timeout |
Undocumented |
Acquire the row-based database lock, polling until available.
Mirrors the blocking semantics of the other branches: it waits until the lock is free, raising once timeout elapses.
| Returns | |
None | This method does not return a value. |
| Raises | |
TimeoutError | If the lock cannot be acquired before timeout elapses. |
async def __aexit__(self, exc_type:
type[ BaseException] | None, exc_val: BaseException | None, exc_tb: types.TracebackType | None):
(source)
¶
Release the lock after leaving the protected block.
| Parameters | |
exctype[BaseException] | None | Exception type, if any. |
excBaseException | None | Exception instance, if any. |
exctypes.TracebackType | None | Traceback object, if any. |
| Returns | |
None | Complete the documented operation without returning a value. |