Hi Edmond,
could you please clarify these two questions? Thanks.
Am 31.10.25 um 11:59 PM schrieb Dennis Birkholz:
Also I do not really understand why the "cancellation" is an
awaitable. If the provided awaitable is itself some infinitely
blocking Coroutine (e.g. `while (true) {}`), how can the scheduler run
the actual Coroutine and the "cancellation" awaitable to determine
whether the Coroutine should be cancelled or not? As long as there is
no multithreading, this does not make sense for me.
In addition, what happens if a Coroutine is suspended and is restarted
again. Is the cancellation awaitable restarted? Or just continued?
Kind regards
Dennis