Closed L4B0MB4 closed 1 year ago
Can you please expand on how you expect this to work. You have a function that makes a call within the handler code to your extension. When its sync, it works. When it's an async call, you get no response? How is the handler code expecting to get a response if its not a blocking call? Are you wanting the extensions to respond back to the function handler code in some way?
Setup:
Expected Behaviour: The HTTP call works during async handling
Actual Behaviour: Only sync calls (for example during the http.HandleFunc or just in the main-func) work. Async http call times out after shutdown event
I tried multiple ways to implement this. For example making "processEvents" async and "StartChannel" async. Or a simple go-routine call in the handlefunc. Nothing seemed to work. And it seems very strange to me.
go.mod partial
template.yaml partial