Simple thread function that runs an asynchronous operation and checks for cancellation.
See Implementation
Simple thread function that runs an asynchronous operation and checks for cancellation.