The code that waits for processing to complete was after the closing brace of the using that unregisters the cancellation callback. This meant that it almost immediately unregistered for cancellation notifications. Simply moving that await inside the relevant block addresses this.
Resolves #1940
The code that waits for processing to complete was after the closing brace of the
using
that unregisters the cancellation callback. This meant that it almost immediately unregistered for cancellation notifications. Simply moving that await inside the relevant block addresses this.