resend / resend-go

Resend's Official Go SDK
https://resend.com
MIT License
98 stars 9 forks source link

feat: Ctx everywhere #16

Closed jorgejr568 closed 1 year ago

jorgejr568 commented 1 year ago

Ctx everywhere

References

Why

Having context along with requests allows the client to control, check for timeouts, and cancel requests. This is especially important for brokers that have a message deadline before requeueing and for parallel processing.

How

Cons

Non-related changes that can be reverted

drish commented 1 year ago

thanks a lot for the contribution @jorgejr568 and @gabrielcipriano , this is definitely a great improvement for the SDK. I'll spend sometime playing with the PR and running some local tests, overall it LGTM, should have it merged soon.