Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: refactor speaker & handshaker into actors#15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ethanndickson merged 5 commits intomainfromethan/speaker-actor
Jan 6, 2025

Conversation

ethanndickson
Copy link
Member

@ethanndicksonethanndickson commentedDec 19, 2024
edited
Loading

Instead of relying on class inheritance, the new Speaker can composed into whatever would like to speak the CoderVPN protocol, and messages can be handled by iterating over the speaker itself e.g:

enumIncomingMessage{case message(RecvMsg)case RPC(RPCRequest<SendMsg,RecvMsg>)}
fortryawaitmsgin speaker{switch msg{caselet.message(msg):        // Handle message that doesn't require a response    caselet.RPC(req):        // Handle incoming RPC}}

@ethanndicksonGraphite App
Copy link
MemberAuthor

This stack of pull requests is managed byGraphite. Learn more aboutstacking.

@ethanndicksonethanndickson marked this pull request as ready for reviewDecember 19, 2024 07:35
@ethanndicksonGraphite App
Copy link
MemberAuthor

ethanndickson commentedJan 6, 2025
edited
Loading

Merge activity

  • Jan 6, 1:39 AM EST: A user started a stack merge that includes this pull request viaGraphite.
  • Jan 6, 1:39 AM EST: A user merged this pull request withGraphite.

@ethanndicksonethanndickson merged commite9f5c6f intomainJan 6, 2025
4 checks passed
@ethanndicksonethanndickson deleted the ethan/speaker-actor branchJanuary 6, 2025 06:39
@ethanndicksonethanndickson self-assigned thisMay 23, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@spikecurtisspikecurtisspikecurtis approved these changes

Assignees

@ethanndicksonethanndickson

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@ethanndickson@spikecurtis

[8]ページ先頭

©2009-2025 Movatter.jp