Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat request: sync analog of asyncio.gather #1899

Open
RomanMIzulin opened this issue Aug 5, 2024 · 1 comment
Open

feat request: sync analog of asyncio.gather #1899

RomanMIzulin opened this issue Aug 5, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@RomanMIzulin
Copy link
Contributor

Feature request

Future containers are cool, but is not possible to concurrently execute them from sync context.

Like this

@future_safe
async def f()->Any:
  ...
@future_safe
async def g()->Any:
  ...

results = sync.gather(*[f(),g()])

@RomanMIzulin RomanMIzulin added the bug Something isn't working label Aug 5, 2024
@sobolevn sobolevn added enhancement New feature or request and removed bug Something isn't working labels Aug 5, 2024
@RomanMIzulin
Copy link
Contributor Author

RomanMIzulin commented Aug 9, 2024

In Tg you said something about TaskGroups, it is related? If yes, then how?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants