olp-cpp-sdk  1.22.0
Public Member Functions | List of all members
olp::thread::Continuation< void > Class Referencefinal

A template for Continuation of the void type. More...

#include <Continuation.h>

Public Member Functions

 Continuation ()=delete
 Do not create the deleted Continuation constructor as an instance.
 
template<typename Callable >
Continuation< internal::AsyncResultType< Callable > > Then (Callable task)
 Adds the next asynchronous task to the ContinuationImpl instance. More...
 
template<typename NewType >
internal::ContinuationImpl::ContinuationTask ToAsyncTask (ExecutionContext context, std::function< void(ExecutionContext, std::function< void(NewType)>)> func)
 

Detailed Description

A template for Continuation of the void type.

It has the same interface as the generic version.

Member Function Documentation

◆ Then()

template<typename Callable >
Continuation< internal::AsyncResultType< Callable > > olp::thread::Continuation< void >::Then ( Callable  task)

Adds the next asynchronous task to the ContinuationImpl instance.

Parameters
taskThe ContinuationTask instance. It represents a task that you want to add to the continuation chain.
Returns
The Continuation instance.

The documentation for this class was generated from the following files: