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

[feat] Add some kind of process.call_forever function. #60

Open
BlockListed opened this issue Oct 25, 2024 · 3 comments
Open

[feat] Add some kind of process.call_forever function. #60

BlockListed opened this issue Oct 25, 2024 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@BlockListed
Copy link

An equivalent of erlang's gen_server.call(ServerRef, Request, infinity) (a gen_server call with an infinite timeout) would be very useful.
The current actor.call does not have this feature, since it only takes finite timeouts.

@lpil
Copy link
Member

lpil commented Oct 25, 2024

Hello! What are your use cases here?

@BlockListed
Copy link
Author

I'm calling an actor and don't want a timeout.
Specifically I'm writing a CLI for my application, which runs over TCP and the TCP part is wrapped in an actor.
My get_line calls to the actor needn't have a timeout, since it's waiting for user input.

@lpil
Copy link
Member

lpil commented Oct 29, 2024

Makes sense! Thank you

@lpil lpil added the help wanted Extra attention is needed label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants