Skip to content

Conversation

sikmir
Copy link

@sikmir sikmir commented Sep 3, 2025


Что происходит; кому и зачем нужно:
asyncio.Barrier доступен в python>=3.11, вынес в бекпорт. Вынес реализацию Barrier


Что поменялось для пользователей:
ничего


Как проверял/а:

@sikmir sikmir requested a review from evgeny-boger September 3, 2025 07:38
Copy link
Member

@evgeny-boger evgeny-boger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Там же написано, что это не бекпорт, а очень сильное изменение. Начиналось с бекпорта, закончилось - другим.

    There is timeout too. If timeout is reached, the barrier is released and
    all waiting tasks are simultaneously awoken.
    This implementation also allows passing payloads to wait calls. When the
    barrier is released, all payloads are sent to all tasks that were
    waiting on the barrier alongside with their index in the barrier.
    It allows one of the simultaneously awoken tasks to perform some work
    on behalf of all tasks that were waiting on the barrier.

вот это новое.

Как оно у тебя с веткой по новому питону работало - непонятно, странно

@sikmir sikmir requested a review from evgeny-boger October 2, 2025 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants