LeviLamina
Loading...
Searching...
No Matches
AsyncTracker.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
6public:
7 // member variables
8 // NOLINTBEGIN
9 ::ll::TypedStorage<1, 1, bool> isCurrentWaitingOnCall;
10 ::ll::TypedStorage<1, 1, bool> mWasCallAborted;
11 ::ll::TypedStorage<8, 8, ::std::chrono::steady_clock::time_point> operationStartTime;
12 ::ll::TypedStorage<8, 8, ::std::chrono::seconds> timeLimit;
13 ::ll::TypedStorage<1, 1, bool> mHasRetryBeenRequested;
14 ::ll::TypedStorage<8, 8, ::std::chrono::steady_clock::time_point> mRetryTime;
15 // NOLINTEND
16
17public:
18 // member functions
19 // NOLINTBEGIN
20 MCNAPI_C bool hasAsyncOperationTimedOut();
21
22 MCNAPI_C void retryCallInSeconds(int seconds);
23
24 MCNAPI_C bool shouldCallBeRetried();
25
26 MCNAPI_C void trackNewAsyncOperation(int timeoutInSeconds);
27 // NOLINTEND
28};
Definition AsyncTracker.h:5