aws-crt-cpp
C++ wrapper around the aws-c-* libraries. Provides Cross-Platform Transport Protocols and SSL/TLS implementations for C++.
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
Aws::Crt::Io::EventLoop Class Referencefinal

#include <EventLoopGroup.h>

Public Member Functions

 operator bool () const noexcept
 
void Schedule (std::function< void(TaskStatus)> &&task, std::chrono::nanoseconds run_in) noexcept
 

Friends

class ClientBootstrap
 

Detailed Description

A non-owning view of a single event-loop belonging to an EventLoopGroup, on which tasks may be scheduled to run after a delay. Obtain one from EventLoopGroup or ClientBootstrap; the referenced loop is owned by the EventLoopGroup and must outlive any scheduled work.

Member Function Documentation

◆ operator bool()

Aws::Crt::Io::EventLoop::operator bool ( ) const
inlineexplicitnoexcept
Returns
true if this view refers to a valid event loop.

◆ Schedule()

void Aws::Crt::Io::EventLoop::Schedule ( std::function< void(TaskStatus)> &&  task,
std::chrono::nanoseconds  run_in 
)
noexcept

Schedule a task to run on this event loop after run_in has elapsed. The task is invoked with TaskStatus::Canceled instead if the event loop shuts down before run_in elapses.

Friends And Related Symbol Documentation

◆ ClientBootstrap


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