LeviLamina
Loading...
Searching...
No Matches
TaskResult.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5class TaskResult {
6public:
7 // member variables
8 // NOLINTBEGIN
9 ::ll::TypedStorage<1, 1, bool> mIsDone;
10 ::ll::TypedStorage<8, 8, ::std::chrono::steady_clock::time_point> mRunAtTime;
11 // NOLINTEND
12
13#ifdef LL_PLAT_S
14#else // LL_PLAT_C
15public:
16 // prevent constructor by default
17 TaskResult();
18
19#endif
20public:
21 // member functions
22 // NOLINTBEGIN
23#ifdef LL_PLAT_C
24 MCNAPI explicit TaskResult(bool done);
25#endif
26
27 MCNAPI ::std::chrono::steady_clock::time_point getRunAtTime() const;
28
29 MCNAPI bool hasDelay() const;
30
31 MCNAPI bool isDone() const;
32 // NOLINTEND
33
34public:
35 // static functions
36 // NOLINTBEGIN
37 MCNAPI static ::TaskResult requeueAfter(::std::chrono::nanoseconds requeueDelay);
38 // NOLINTEND
39
40public:
41 // static variables
42 // NOLINTBEGIN
43 MCNAPI static ::TaskResult const& Done();
44
45 MCNAPI static ::TaskResult const& Requeue();
46 // NOLINTEND
47
48public:
49 // constructor thunks
50 // NOLINTBEGIN
51#ifdef LL_PLAT_C
52 MCNAPI void* $ctor(bool done);
53#endif
54 // NOLINTEND
55};
MCAPI bool hasDelay() const
static MCAPI ::TaskResult const & Done()
MCAPI::std::chrono::steady_clock::time_point getRunAtTime() const
static MCAPI ::TaskResult requeueAfter(::std::chrono::nanoseconds requeueDelay)
static MCAPI ::TaskResult const & Requeue()
MCAPI bool isDone() const