mtproto icon indicating copy to clipboard operation
mtproto copied to clipboard

[FEAT]: add support for context.Context

Open aofei opened this issue 5 years ago • 1 comments

Is your feature request related to a problem? Please describe.

I think people may prefer to have the ability to cancel their requests at any time.

Describe the solution you'd like

Add context.Context to every func/method that involves network operations.

Describe alternatives you've considered

N/A

Additional context

This isn't a difficult feature to implement. What needs to be considered is the API compatibility (since this module have already released v1.0.0).

aofei avatar Mar 06 '21 05:03 aofei

leave this link just for my info, don't mind it

quenbyako avatar Mar 07 '21 15:03 quenbyako