Replies: 1 comment 1 reply
-
answering myself. I found the solution here.
and voila it works. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Let's say I spawn a task A and I have a channel B. I want to loop and select!() either that A finishes or a quit message is received on B. If the latter, then abort() task A.
something iike:
Unfortunately I get a compiler error at the abort call because a_joinhandle is already moved above.
So, how to accomplish this?
here's a playground
Beta Was this translation helpful? Give feedback.
All reactions