-
Notifications
You must be signed in to change notification settings - Fork 27
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
[BUG] attempt to await next() on more than one task #31
Comments
Hi, Perhaps it as to do with the fact that an |
Ultimately you are right … the multicast operator should support several tasks no matter the upstream sequence … I’ll look into it |
@twittemb Im sorry I did not give you a reproducible example, I have a quite large and complex code base and Im novice at Structured Concurrency so it is a bit hard for me to give a small repro code snippet. Thanks for an amazing project and looking forward to your Broadcast PR in AsyncAlgorithm repo to be merged! Maybe I should use |
Thanks a lot. Share is just a shortcut for multicast + AsyncPassthroughSubject. You’ll get the same result. I’ll take a look as soon as possible to your usecase |
Could you test the new version 0.5.2, it should have fixed that? thanks. |
Thanks! Testing it now, will report back results soon! |
I did not manage to reproduce the bug with neither 0.5.1 nor 0.5.2 now when using AyncBufferedChannel. |
Did you try with keeping an AsyncStream ? |
Describe the bug
When using
.multicast
I got unexpected error:attempt to await next() on more than one task
. It is my - maybe incorrect? - understanding that I could use several tasks consuming an Async Multicasted sequence?To Reproduce
I have these variables:
and callsite
Provide code snippets, or links to gist or repos if possible.
Expected behavior
I would expect to be able to await values in multiple tasks from a multicasted autoconnected Async Seqyuence.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment:
Mac Studio (M1), running macOS Ventura: 13.0.1 (22A400)
Xcode Version 14.1 (14B47b)
AsyncExtension version 0.5.1
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: