quic/qbox
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
gs::runonsysc::Core::AsyncJob Struct Reference

Public Types

using Ptr = std::shared_ptr< AsyncJob >
 

Public Member Functions

 AsyncJob (std::function< void()> j)
 
void operator() ()
 
void cancel ()
 
void wait ()
 
bool is_cancelled () const
 

Public Attributes

std::function< void()> job
 
std::promise< voiddone_promise
 
std::shared_future< voiddone_future
 
std::atomic< boolcancelled { false }
 

The documentation for this struct was generated from the following file: