|
CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
|
Classes | |
| class | ResultTask |
| A Task specialization that returns a result value upon completion. More... | |
| class | ResultValueTask |
| Represents a hybrid task-like type that can wrap either a direct result value or a ResultTask<T>. More... | |
| class | Task |
| Represents an asynchronous operation that can be awaited and composed with other tasks. More... | |
| class | TaskScheduler |
| Represents an object that handles the low-level work of queuing tasks onto threads. More... | |
| class | ValueTask |
| Provides an awaitable result of an asynchronous operation. More... | |
Enumerations | |
| enum class | TaskStatus { Created = 0 , WaitingForActivation = 1 , WaitingToRun = 2 , Running = 3 , WaitingForChildrenToComplete = 4 , RanToCompletion = 5 , Canceled = 6 , Faulted = 7 } |
Functions | |
| void | DispatchCurrentContext () |
| Dispatches all tasks bound to this thread synchronously. More... | |
| TaskPtr | Delay (int32_t millisecondsDelay) |
| Creates a task that completes after a time delay. More... | |
| TaskPtr | Delay (int32_t millisecondsDelay, const CancellationToken &cancellationToken) |
| TaskPtr | FromException (const Exception &exception) |
| template<typename TResult > | |
| RTaskPtr< TResult > | FromException (const Exception &exception) |
| template<typename TResult > | |
| RTaskPtr< TResult > | FromResult (TResult result) |
| TaskPtr | Run (const Action<> &action) |
| TaskPtr | Run (const Action<> &action, const CancellationToken &cancellationToken) |
| TaskPtr | Run (const Func< TaskPtr > &function) |
| template<typename TResult > | |
| RTaskPtr< TResult > | Run (const Func< TResult > &function) |
| TaskPtr | WhenAll (const ArrayPtr< TaskPtr > &tasks) |
| TaskPtr | WhenAll (const SharedPtr< Collections::Generic::IEnumerable< TaskPtr > > &tasks) |
| template<typename T > | |
| RTaskPtr< ArrayPtr< T > > | WhenAll (SharedPtr< Collections::Generic::IEnumerable< RTaskPtr< T > > > tasks) |
| template<typename T > | |
| RTaskPtr< ArrayPtr< T > > | WhenAll (ArrayPtr< RTaskPtr< T > > tasks) |
| Runtime::CompilerServices::YieldAwaitable | Yield () |
|
strong |
| TaskPtr System::Threading::Tasks::Delay | ( | int32_t | millisecondsDelay | ) |
Creates a task that completes after a time delay.
| millisecondsDelay | The number of milliseconds to wait before completing the returned task, or -1 to wait indefinitely. |
| System.ArgumentOutOfRangeException | if the millisecondsDelay argument is less than -1. |
| TaskPtr System::Threading::Tasks::Delay | ( | int32_t | millisecondsDelay, |
| const CancellationToken & | cancellationToken | ||
| ) |
| void System::Threading::Tasks::DispatchCurrentContext | ( | ) |
Dispatches all tasks bound to this thread synchronously.
| RTaskPtr< TResult > System::Threading::Tasks::FromException | ( | const Exception & | exception | ) |
| RTaskPtr< TResult > System::Threading::Tasks::FromResult | ( | TResult | result | ) |
| TaskPtr System::Threading::Tasks::Run | ( | const Action<> & | action, |
| const CancellationToken & | cancellationToken | ||
| ) |
| RTaskPtr< TResult > System::Threading::Tasks::Run | ( | const Func< TResult > & | function | ) |
| RTaskPtr< ArrayPtr< T > > System::Threading::Tasks::WhenAll | ( | ArrayPtr< RTaskPtr< T > > | tasks | ) |
| TaskPtr System::Threading::Tasks::WhenAll | ( | const SharedPtr< Collections::Generic::IEnumerable< TaskPtr > > & | tasks | ) |
| RTaskPtr< ArrayPtr< T > > System::Threading::Tasks::WhenAll | ( | SharedPtr< Collections::Generic::IEnumerable< RTaskPtr< T > > > | tasks | ) |
| Runtime::CompilerServices::YieldAwaitable System::Threading::Tasks::Yield | ( | ) |