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

Add plugin.CallWithContext method #60

Merged

Conversation

Marton6
Copy link
Contributor

@Marton6 Marton6 commented Mar 6, 2024

This PR adds a new method that allows calling plugin functions with a custom context.

This will allow developers to call extism plugins with custom timeouts and cancellation.

This method allows calling plugin functions with a custom context.
@Marton6
Copy link
Contributor Author

Marton6 commented Mar 6, 2024

Let me know if you want me to also document this method in the README or update any other docs.

Copy link
Collaborator

@mhmd-azeez mhmd-azeez left a comment

Choose a reason for hiding this comment

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

Thank you for the PR, I left one small feedback

extism.go Outdated Show resolved Hide resolved
@mhmd-azeez
Copy link
Collaborator

Let me know if you want me to also document this method in the README or update any other docs.

That'd be great!

@Marton6 Marton6 force-pushed the feat/call-functions-with-custom-context branch from b0a29d1 to 803d680 Compare March 6, 2024 13:07
@Marton6
Copy link
Contributor Author

Marton6 commented Mar 6, 2024

Let me know if you want me to also document this method in the README or update any other docs.

That'd be great!

Added a note to the README! I didn't want to add a new section to not clutter the document too much as it is already quite lengthy.

@mhmd-azeez mhmd-azeez requested a review from zshipko March 6, 2024 13:09
Copy link
Collaborator

@mhmd-azeez mhmd-azeez left a comment

Choose a reason for hiding this comment

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

Looks great to me! I will just wait for @zshipko to take a look as well

Copy link
Contributor

@zshipko zshipko left a comment

Choose a reason for hiding this comment

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

Looks good!

@zshipko zshipko merged commit c982866 into extism:main Mar 6, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

None yet

3 participants