Classes | Typedefs | Functions
Bentley::Tasks Namespace Reference

Classes

struct  AsyncError
 Class for generic error description. More...
 
struct  AsyncResult
 Class for returning success Value or Error from async operations. More...
 
struct  AsyncResult< void, ErrorType >
 Class for returning success or Error from async operations. More...
 
struct  AsyncTask
 
struct  AsyncTaskRunner
 
struct  AsyncTaskRunnerFactory
 
struct  AsyncTaskRunnerPool
 
struct  AsyncTasksManager
 
struct  ConcurrentQueue
 
struct  IAsyncTaskRunnerFactory
 
struct  ICancellationListener
 
struct  ICancellationToken
 
struct  ITaskRunner
 
struct  ITaskScheduler
 
struct  LimitingTaskQueue
 
struct  MergeCancellationToken
 
struct  OnAsyncTaskCompletedListener
 
struct  PackagedAsyncTask
 
struct  PackagedAsyncTask< void >
 
struct  PackagedThenAsyncTask
 
struct  PackagedThenAsyncTask< void, P >
 
struct  SimpleCancellationListener
 
struct  SimpleCancellationToken
 
struct  TaskScheduler
 
struct  UniqueTaskHolder
 
struct  UniqueTasksHolder
 
struct  WorkerThread
 
struct  WorkerThreadPool
 

Typedefs

typedef const AsyncErrorAsyncErrorCR
 
typedef AsyncErrorAsyncErrorR
 
template<class T >
using AsyncTaskPtr = std::shared_ptr< PackagedAsyncTask< T >>
 
typedef std::shared_ptr
< struct ICancellationToken
ICancellationTokenPtr
 
typedef std::shared_ptr
< struct
SimpleCancellationToken
SimpleCancellationTokenPtr
 
typedef std::shared_ptr
< struct
MergeCancellationToken
MergeCancellationTokenPtr
 
typedef std::shared_ptr
< WorkerThread
WorkerThreadPtr
 

Functions

template<typename T >
AsyncTaskPtr< T > CreateCompletedAsyncTask (const T &result)
 Create task with return value that is flagged as completed without executing it. More...
 
AsyncTaskPtr< void > CreateCompletedAsyncTask ()
 Create task that is flagged as completed without executing it. More...
 

Typedef Documentation

typedef const AsyncError& AsyncErrorCR
using AsyncTaskPtr = std::shared_ptr<PackagedAsyncTask<T>>
typedef std::shared_ptr<struct ICancellationToken> ICancellationTokenPtr
typedef std::shared_ptr<struct MergeCancellationToken> MergeCancellationTokenPtr
typedef std::shared_ptr<struct SimpleCancellationToken> SimpleCancellationTokenPtr
typedef std::shared_ptr<WorkerThread> WorkerThreadPtr

Function Documentation

AsyncTaskPtr<T> Bentley::Tasks::CreateCompletedAsyncTask ( const T &  result)

Create task with return value that is flagged as completed without executing it.

AsyncTaskPtr<void> Bentley::Tasks::CreateCompletedAsyncTask ( )

Create task that is flagged as completed without executing it.


Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.