userver: userver/drivers/subscribable_futures.hpp File Reference
Loading...
Searching...
No Matches
subscribable_futures.hpp File Reference

Detailed Description

An adaptor for working with certain external futures.

Definition in file subscribable_futures.hpp.

Go to the source code of this file.

#include <boost/intrusive_ptr.hpp>
#include <boost/smart_ptr/intrusive_ref_counter.hpp>
#include <userver/engine/deadline.hpp>
#include <userver/engine/exception.hpp>
#include <userver/engine/future_status.hpp>
#include <userver/engine/single_consumer_event.hpp>
#include <userver/engine/task/cancel.hpp>
#include <userver/utils/make_intrusive_ptr.hpp>
+ Include dependency graph for subscribable_futures.hpp:

Classes

class  drivers::SubscribableFutureWrapper< SubscribableFuture >
 An adaptor for working with certain external futures. More...
 

Namespaces

namespace  drivers
 top namespace for drivers building blocks.
 

Functions

template<typename SubscribableFuture >
void drivers::WaitForSubscribableFuture (SubscribableFuture &&future)
 Waits on the given future as described on drivers::SubscribableFutureWrapper.
 
template<typename SubscribableFuture >
engine::FutureStatus drivers::TryWaitForSubscribableFuture (SubscribableFuture &&future, engine::Deadline deadline)