Context
geoirb opened this issue · 7 comments
Can you make connecting to the server and sending messages using context?
Why? What thing can solve Context in this package?
@xhit Context will allow to more accurately control the connection to the server and sending messages, for example using context.WithTimeout
Timeout is implemented to connect and to send.
I have seen that
The timeout for all submissions is the same, but if you add to post, the user can manage each posting
The user can manage each posting.
I think Context, in this tiny package, solves nothing.
Maybe I'm wrong, and because I'm not fan of Context implementation because is like a virus and only add obscurity to the code.
I will left this issue open. I will accept a PR only if Context implementation can solve anything here.
Context support is important is to support cancellation, and would definitely be useful here. In case it's helpful to know, I'm choosing not to use this package due to the lack of context/cancellation support.