xtd 0.2.0
Loading...
Searching...
No Matches
task_result.hpp File Reference
#include "basic_task.hpp"
#include "task_factory.hpp"

Definition

Contains xtd::threading::tasks::task <result_t> class.

Go to the source code of this file.

Classes

class  xtd::threading::tasks::task< result_t >
 Represents an asynchronous operation. More...
 
struct  xtd::threading::tasks::task< result_t >::promise_type
 
struct  xtd::threading::tasks::task< result_t >::awaiter
 

Namespaces

namespace  xtd
 The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
 
namespace  xtd::threading
 The xtd::threading namespace provides classes and interfaces that enable multithreaded programming. In addition to classes for synchronizing thread activities and access to data ( xtd::threading::mutex, xtd::threading::monitor, xtd::threading::interlocked, xtd::threading::auto_reset_event, and so on), this namespace includes a xtd::threading::thread_pool class that allows you to use a pool of system-supplied threads, and a xtd::threading::timer class that executes callback methods on thread pool threads.
 
namespace  xtd::threading::tasks
 The xtd::threading::tasks namespace provides types that simplify the work of writing concurrent and asynchronous code. The main types are xtd::threading::tasks::task which represents an asynchronous operation that can be waited on and cancelled, and xtd::threading::tasks::task <result_t>, which is a task that can return a value. The xtd::threading::tasks::task_factory class provides static methods for creating and starting tasks, and the xtd::threading::tasks::task_scheduler class provides the default thread scheduling infrastructure.