Async guard
Compare changes
- Mateusz Żebrak authored
+ 48
− 25
@@ -21,33 +19,36 @@ class AsyncGuardNotAvailableError(CliveError):
@@ -21,33 +19,36 @@ class AsyncGuardNotAvailableError(CliveError):
When the guard is acquired by some other task, the guarded block could not execute, error will be raised instead.
def __exit__(self, _: type[BaseException] | None, ex: BaseException | None, ___: TracebackType | None) -> None:
@@ -56,17 +57,39 @@ class AsyncGuard:
@@ -56,17 +57,39 @@ class AsyncGuard:
@@ -76,7 +99,7 @@ class AsyncGuard:
@@ -76,7 +99,7 @@ class AsyncGuard: