Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Implement genserver callbacks #18

Closed

Conversation

dangdennis
Copy link

@dangdennis dangdennis commented Dec 19, 2023

Looking to resolve #4 myself.

  • cast
  • handle_cast
  • handle_info
  • handle_continue

But I'm not done yet. I've only partially implemented handle_cast and cast. I created this PR for potential early feedback and signal that someone's working on the issue.

@dangdennis dangdennis force-pushed the dennisdang-genserver-callbacks branch from 092038d to 7bee446 Compare December 19, 2023 07:25
@@ -31,6 +33,11 @@ let call : type res. Pid.t -> res req -> res =
| None -> failwith "bad message")
| _ -> failwith "unexpected message"

let cast : type res. Pid.t -> res req -> unit =
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion. I think we can write this without a locally abstract type since the Cast constructor would already take any type as input.

@leostera
Copy link
Collaborator

Thanks for contributing @dangdennis! ✨ I'll keep an eye, feel free to ping/tag me if you want comments on anything specific 🙏🏼

@leostera leostera added the enhancement New feature or request label Dec 21, 2023
@dangdennis
Copy link
Author

@leostera sorry I won’t have time to finish this for a while. :[

ill close and someone else can pick up the issue later.

@dangdennis dangdennis closed this Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add missing GenServer callbacks
2 participants