[FeatureRequest] Add overload with cancellation token to the Listen() methodSee original GitHub issue
Motivation: We start Gofer task client from .net core hosted service. We use the BackgroundService.ExecuteAsync() method that expects that underlying code will exit on cancellation. We’ve imitate cancellation support with
but I think it will be good to have such feature out of the box.
- Created 3 years ago
- Comments:8 (6 by maintainers)
Top GitHub Comments
I don’t see any reason why an overload couldn’t be added that takes a cancellation token. Personally I have not used the pattern much but I understand it’s widely spread throughout .NET.
Are you interested in making a PR for this feature @ig-sinicyn ?