Cancellation changes and drop extreneous sources #13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Rename CancellationGroup to CompletionGroup
Also, add a way to install completion handlers that are called when
a member of a completion group completes. This allows us to define
supervisors for coroutines or actors. Note that, unlike for futures
we sometimes do not want to wait for termination of a coroutine (or
actor) in a specific val. Instead, the coroutine could be terminated
when the enclosing completion group completes (i.e. gets cancelled).
But we still want to handle abnormal early termination of the coroutine
somehow. Completion handlers are the solution to this. A handler
can be installed to be valid in a scope. Then, if any cancellable objects
terminate, the handler is called.
Move sources that have to do with general suspension handling to
a dotty test directory.