Fixed comments that were inconsistent with the style guidelines described in C++ core guidelines and the modern C++/WinRT language projections and removed trailing whitespace. Inserted a space after the beginning of the comment so the text wasn't touching the // on all occurrences. Removed all occurrences of trailing whitespace
25 lines
641 B
C++
25 lines
641 B
C++
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License.
|
|
|
|
#pragma once
|
|
|
|
namespace CalculatorApp
|
|
{
|
|
namespace Common
|
|
{
|
|
class ConversionResultTaskHelper
|
|
{
|
|
public:
|
|
ConversionResultTaskHelper(unsigned int delay, const std::function<void()> functionToRun);
|
|
~ConversionResultTaskHelper();
|
|
|
|
private:
|
|
concurrency::task<void> CompleteAfter(unsigned int timeout);
|
|
|
|
unsigned int m_delay;
|
|
concurrency::cancellation_token_source m_cts;
|
|
const std::function<void()> m_storedFunction;
|
|
};
|
|
}
|
|
}
|