GRPC C++  1.66.0
Public Member Functions
grpc_event_engine::experimental::EventEngine::Closure Class Referenceabstract

A custom closure type for EventEngine task execution. More...

#include <event_engine.h>

Public Member Functions

 Closure ()=default
 
 Closure (const Closure &)=delete
 
Closureoperator= (const Closure &)=delete
 
virtual ~Closure ()=default
 
virtual void Run ()=0
 

Detailed Description

A custom closure type for EventEngine task execution.

Throughout the EventEngine API, Closure ownership is retained by the caller - the EventEngine will never delete a Closure, and upon cancellation, the EventEngine will simply forget the Closure exists. The caller is responsible for all necessary cleanup.

Constructor & Destructor Documentation

◆ Closure() [1/2]

grpc_event_engine::experimental::EventEngine::Closure::Closure ( )
default

◆ Closure() [2/2]

grpc_event_engine::experimental::EventEngine::Closure::Closure ( const Closure )
delete

◆ ~Closure()

virtual grpc_event_engine::experimental::EventEngine::Closure::~Closure ( )
virtualdefault

Member Function Documentation

◆ operator=()

Closure& grpc_event_engine::experimental::EventEngine::Closure::operator= ( const Closure )
delete

◆ Run()

virtual void grpc_event_engine::experimental::EventEngine::Closure::Run ( )
pure virtual

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