dxFeed Graal CXX API v9.0.0
Loading...
Searching...
No Matches
PromiseList< E > Struct Template Reference

A list of event receiving results that will be completed normally or exceptionally in the future. More...

#include <Promise.hpp>

Static Public Member Functions

static std::shared_ptr< PromiseList > create (void *handle, const std::vector< std::shared_ptr< const PromiseContext > > &contexts={})
 Creates the list of promises from the native list.

Friends

struct Promises

Detailed Description

template<typename E>
struct PromiseList< E >

A list of event receiving results that will be completed normally or exceptionally in the future.

It is a std::vector<Promise<std::shared_ptr<E>>> wrapper with Graal semantics.

Template Parameters
EThe event type.

Member Function Documentation

◆ create()

template<typename E>
std::shared_ptr< PromiseList > PromiseList< E >::create ( void * handle,
const std::vector< std::shared_ptr< const PromiseContext > > & contexts = {} )
inlinestatic

Creates the list of promises from the native list.

Parameters
handleThe native list.
contextsThe descriptions of the requests, indexed by the element index of the native list (a null element of the native list is skipped, its description too). May be empty or shorter than the list.