#include <event_engine.h>
Public Member Functions | |
Closure ()=default | |
Closure (const Closure &)=delete | |
Closure & | operator= (const Closure &)=delete |
virtual void | Run ()=0 |
virtual | ~Closure ()=default |
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.
Definition at line 87 of file event_engine.h.
|
default |
|
virtualdefault |
|
delete |
|
pure virtual |
Implemented in grpc_event_engine::experimental::IomgrEventEngine::ClosureData.