proxygen
folly::EventBase::StackFunctionLoopCallback Class Reference

#include <EventBase.h>

Inheritance diagram for folly::EventBase::StackFunctionLoopCallback:
folly::EventBase::LoopCallback

Public Member Functions

 StackFunctionLoopCallback (Func &&function)
 
void runLoopCallback () noexceptoverride
 
- Public Member Functions inherited from folly::EventBase::LoopCallback
virtual ~LoopCallback ()=default
 
void cancelLoopCallback ()
 
bool isLoopCallbackScheduled () const
 

Private Attributes

Func function_
 

Detailed Description

Definition at line 193 of file EventBase.h.

Constructor & Destructor Documentation

folly::EventBase::StackFunctionLoopCallback::StackFunctionLoopCallback ( Func &&  function)
inlineexplicit

Definition at line 195 of file EventBase.h.

196  : function_(std::move(function)) {}
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567

Member Function Documentation

void folly::EventBase::StackFunctionLoopCallback::runLoopCallback ( )
inlineoverridevirtualnoexcept

Implements folly::EventBase::LoopCallback.

Definition at line 197 of file EventBase.h.

References folly::gen::move.

197  {
199  }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
folly::Function< void()> Func
Definition: EventBase.h:135

Member Data Documentation

Func folly::EventBase::StackFunctionLoopCallback::function_
private

Definition at line 202 of file EventBase.h.


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