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

feature: Give users a way to manage timeouts from inside host functions #637

Open
zshipko opened this issue Dec 15, 2023 · 3 comments
Open
Assignees

Comments

@zshipko
Copy link
Contributor

zshipko commented Dec 15, 2023

Since host functions can't actually be interrupted, it might make sense to not include them in the overall timeout. If we do that we could then give the user some more fine grained controls for managing timeout from within host functions.

@neuronicnobody
Copy link
Contributor

Also consider removing the default timeout

@zshipko
Copy link
Contributor Author

zshipko commented Dec 18, 2023

Default timeout has been removed in: #641

Still working through some ideas in this branch: https://github.com/extism/extism/tree/extend-timeout

@Simonl9l
Copy link

Simonl9l commented Feb 13, 2024

at least from a .Net perspective it would be great to support cancelation tokens ? A how function may call our to other services, that in turn support cancelation, so the cancelation token can be passed along.

I guess that other languages may have similar constructs. The is also related to the need/desire that host functions could could be asynchronous (albeit seem work here was abandoned per the PR: #264) - are there any timelines/plans get back to this?

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

4 participants