extism / go-sdk

Extism Go SDK - easily run WebAssembly modules in your Go applications
https://pkg.go.dev/github.com/extism/go-sdk
BSD 3-Clause "New" or "Revised" License
85 stars 10 forks source link

Add plugin.CallWithContext method #60

Closed Marton6 closed 8 months ago

Marton6 commented 8 months ago

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.

Marton6 commented 8 months ago

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

mhmd-azeez commented 8 months ago

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 commented 8 months ago

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.