Skip to content

Conversation

@zyp
Copy link
Contributor

@zyp zyp commented Jul 12, 2025

@whitequark whitequark added meta:nominated Nominated for discussion on the next relevant meeting area:core RFC affecting APIs in amaranth-lang/amaranth labels Jul 12, 2025
`SimulatorContext` have the following methods added:
- `group() -> TaskGroup`
- Create a new task group.
- `async gather(coros*) -> tuple`
Copy link
Member

Choose a reason for hiding this comment

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

I think gather isn't a particularly great name. I propose await sim.concurrent(*coros).

@whitequark
Copy link
Member

We have discussed this RFC on the 2025-07-28 weekly meeting. The disposition was to merge, with the following changes:

  • A method .done() to be added on Task, with the same semantics as asyncio.

@whitequark whitequark removed the meta:nominated Nominated for discussion on the next relevant meeting label Jul 28, 2025
@whitequark whitequark merged commit 3e738b0 into amaranth-lang:main Jul 28, 2025
@whitequark
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:core RFC affecting APIs in amaranth-lang/amaranth

Development

Successfully merging this pull request may close these issues.

2 participants