Skip to content

add missing generic to stop_coroutine#935

Merged
not-fl3 merged 1 commit intonot-fl3:masterfrom
cyrgani:generic-stop-coro
Apr 5, 2025
Merged

add missing generic to stop_coroutine#935
not-fl3 merged 1 commit intonot-fl3:masterfrom
cyrgani:generic-stop-coro

Conversation

@cyrgani
Copy link
Copy Markdown
Contributor

@cyrgani cyrgani commented Apr 4, 2025

Previously, Coroutine was used, which is equivalent to Coroutine<()> due to the definition as pub struct Coroutine<T = ()> { ... }.
This PR makes the function stop_coroutine generic over any result type instead.
Fixes #885.

@not-fl3 not-fl3 merged commit d94bc7a into not-fl3:master Apr 5, 2025
6 checks passed
@cyrgani cyrgani deleted the generic-stop-coro branch April 5, 2025 06:31
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.

stop_coroutine only accepts Coroutine<()> with a unit return type

2 participants