AioExclusiveRegion API is sync now

This commit is contained in:
Maxim Devaev
2024-10-26 15:51:33 +03:00
parent 399712c684
commit a84242c9bc
5 changed files with 23 additions and 23 deletions

View File

@@ -185,7 +185,7 @@ class _GpioOutput: # pylint: disable=too-many-instance-attributes
@aiotools.atomic_fg
async def __run_action(self, wait: bool, name: str, func: Callable, *args: Any) -> None:
if wait:
async with self.__region:
with self.__region:
await func(*args)
else:
await aiotools.run_region_task(