Classes | Public Types | Public Member Functions | List of all members
util::IoContext Class Reference

Classes

class  Cancellable
 

Public Types

using io_context = ::boost::asio::io_context
 
typedef std::shared_ptr< io_context > ptr_t
 

Public Member Functions

void Stop ()
 
io_context & raw_context ()
 
template<typename Func >
void Async (Func &&f)
 
template<typename Func , typename... Args>
void AsyncFiber (Func &&f, Args &&... args)
 
template<typename Func >
auto Await (Func &&f) -> decltype(f())
 
template<typename... Args>
boost::fibers::fiber LaunchFiber (Args &&... args)
 
template<typename Func >
auto AwaitSafe (Func &&f) -> decltype(f())
 
auto get_executor ()
 
bool InContextThread () const
 
void AttachCancellable (Cancellable *obj)
 

Detailed Description

Definition at line 81 of file io_context.h.


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