SimpleAsyncThreadFunc

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