class
#include <taskflow/core/async_task.hpp>
AsyncTask class to create a dependent asynchronous task (async task)
A tf::
// main thread retains shared ownership of async task A tf::AsyncTask A = executor.silent_dependent_async([](){}); // task A remains alive (i.e., at least one ref count by the main thread) // when being added to the dependency list of async task B tf::AsyncTask B = executor.silent_dependent_async([](){}, A);
Currently, tf::
Constructors, destructors, conversion operators
Public functions
- auto operator=(const AsyncTask& rhs) -> AsyncTask&
- copy-assigns the async task from
rhs
- auto operator=(AsyncTask&& rhs) -> AsyncTask&
- move-assigns the async task from
rhs
- auto empty() const -> bool
- checks if this async task is associated with a callable
- void reset()
- release the managed object of
this
- auto hash_value() const -> size_t
- obtains the hashed value of this async task
- auto use_count() const -> size_t
- returns the number of shared owners that are currently managing this async task
- auto is_done() const -> bool
- checks if the async task finishes