CyCoreSystems / ari

Golang Asterisk REST Interface (ARI) library
Apache License 2.0
189 stars 73 forks source link

Modified the native client to include a ConnectWithContext function #164

Closed daninmadison closed 1 year ago

daninmadison commented 1 year ago

This allows the caller to pass in their context. ConnectWithContext then uses this Context for the cancel. If the caller/parent cancels the Context, the child Connect routine detects the Context is closed and cleans up. This allows for a more complex environment with multiple goroutines running under a parent/client model.


This change is Reviewable