Files
GermanAirlinesVA-GAConnector/ixwebsocket/include/IXCancellationRequest.h
T
2022-09-05 01:41:09 +02:00

19 lines
399 B
C++

/*
* IXCancellationRequest.h
* Author: Benjamin Sergeant
* Copyright (c) 2018 Machine Zone, Inc. All rights reserved.
*/
#pragma once
#include <atomic>
#include <functional>
namespace ix
{
using CancellationRequest = std::function<bool()>;
CancellationRequest makeCancellationRequestWithTimeout(
int seconds, std::atomic<bool>& requestInitCancellation);
} // namespace ix