#pragma once #include #include #include class LambdaFunctionRunnable : public FRunnable { public: static FRunnableThread* RunThreaded(FString threadName, std::function f); void Exit() override; uint32 Run() override; protected: LambdaFunctionRunnable(std::function f); std::function _f; FRunnableThread* thread; };