Update derived authority examples for new net package - #596
Merged
Merged
Conversation
The old net package's TCPConnectionNotify and TCPConnection are gone. The examples now use the net/notifier subpackage's ClientTCPConnectionNotify and ClientTCPConnection, which have the same callback shape with less boilerplate than the actor-trait API. Authority hierarchy sample gains TCPServerAuth. Also fixes a few pre-existing prose issues: a TCPConnectAuth typo, "pay close mind" → "pay close attention," a comma splice, and "most restrictive authority in net" sharpened to "most specific authority for outbound TCP connections."
✅ Deploy Preview for pony-tutorial ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
14 tasks
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The old net package's
TCPConnectionNotifyandTCPConnectionare being replaced by lori's implementation (ponylang/ponyc#6016). The code samples and prose on the derived-authority page now use thenet/notifiersubpackage'sClientTCPConnectionNotifyandClientTCPConnection— same callback shape, keeps the focus on authority rather than the networking API.Authority hierarchy sample gains
TCPServerAuth. A few pre-existing prose issues fixed along the way: aTCPConnectAuthtypo, non-standard idiom, comma splice, and an imprecise description ofTCPConnectAuth's scope.Prep for ponylang/ponyc#6014.