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#ifdef LL_PLAT_C
21 MCNAPI bool hasAsyncOperationTimedOut();
22
23 MCNAPI void retryCallInSeconds(int seconds);
24
25 MCNAPI bool shouldCallBeRetried();
26
27 MCNAPI void trackNewAsyncOperation(int timeoutInSeconds);
28#endif
29 // NOLINTEND
30};
Definition AsyncTracker.h:5