notifications-net-client icon indicating copy to clipboard operation
notifications-net-client copied to clipboard

Added support for cancellation tokens

Open euantorano opened this issue 2 years ago • 1 comments

What problem does the pull request solve?

Fixes #176 by adding support for passing CancellationToken parameters to asynchronous methods.

Also fixes #130 - rather than accessing a Task result directly the task should be awaited.

These changes allow early cancellation of requests.

Checklist

  • [x] I’ve used the pull request template
  • [x] I’ve written unit tests for these changes
  • [x] I’ve update the documentation (in DOCUMENATION.md and CHANGELOG.md)
  • [x] I’ve bumped the version number (in src/GovukNotify/GovukNotify.csproj)

euantorano avatar Sep 27 '23 07:09 euantorano

I'm not sure why but it looks like the CI may be stalled on this one. Would someone mind giving it a nudge?

The changes mentioned in the previous comment will be explored in a future PR after this one has been merged.

euantorano avatar Oct 02 '23 15:10 euantorano