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(ao): Timeouts for coroutine functions #406

Open
martonlederer opened this issue Nov 28, 2024 · 0 comments
Open

feat(ao): Timeouts for coroutine functions #406

martonlederer opened this issue Nov 28, 2024 · 0 comments

Comments

@martonlederer
Copy link
Collaborator

martonlederer commented Nov 28, 2024

In #360, timeouts for handlers is discussed. This feature would also be useful for any coroutine related function, such as ao.send().receive() and ao.spawn().receive(). Basically, the execution would error once the deadline is reached, making these functions able to effectively "expire".

Additionally ao.send().onReply() and ao.spawn().onReply() could also be extended to include support for timeouts, once #360 is implemented, since all these two functions need to do is to forward the timeout to the handler they create.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant