galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
galaxy::async Namespace Reference

Classes

class  Timer
 Asynchronous timer class. More...
 

Functions

template<typename T = void>
bool is_work_done (const std::future< T > &task) noexcept
 Check if an async thread has finished or not.
 

Function Documentation

◆ is_work_done()

template<typename T = void>
bool galaxy::async::is_work_done ( const std::future< T > & task)
inlinenodiscardnoexcept

Check if an async thread has finished or not.

Template Parameters
TTemplate type for std::future<T>.
Parameters
taskFuture returned from thread to check.
Returns
Returns true when task has finished.

Definition at line 31 of file Async.hpp.