-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #230 from goodboy/drop_stream_shielding
Drop stream shielding; it was from a legacy api design
- Loading branch information
Showing
3 changed files
with
39 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Drop stream "shielding" support which was originally added to sidestep | ||
a cancelled call to ``.receive()`` | ||
|
||
In the original api design a stream instance was returned directly from | ||
a call to ``Portal.run()`` and thus there was no "exit phase" to handle | ||
cancellations and errors which would trigger implicit closure. Now that | ||
we have said enter/exit semantics with ``Portal.open_stream_from()`` and | ||
``Context.open_stream()`` we can drop this implicit (and arguably | ||
confusing) behavior. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters