Poco::JS::Core

template < typename TParameterType, typename TResultType >

class AsyncFunctionCompletedTask

File Information

Library: JS/Core
Package: Execution
Header: Poco/JS/Core/AsyncFunction.h

Description

This is executed in the JavaScript timer queue when an asynchronous function implemented with AsyncFunctionRunner completes successfully. It will resolve the Promise with the result of the asynchronous function.

Inheritance

Direct Base Classes: Poco::Util::TimerTask

All Base Classes: Poco::RefCountedObject, Poco::Runnable, Poco::Util::TimerTask

Member Summary

Member Functions: run

Inherited Functions: cancel, duplicate, isCancelled, lastExecution, referenceCount, release, run

Types Aliases

AsyncFunctionRunnerType

using AsyncFunctionRunnerType = AsyncFunctionRunner < ParameterType, ResultType >;

ConvertResultFunc

using ConvertResultFunc = std::function < v8::Local < v8::Value > (v8::Local < v8::Context > &, const ResultType &)>;

ParameterType

using ParameterType = TParameterType;

ResultType

using ResultType = TResultType;

Constructors

AsyncFunctionCompletedTask inline

AsyncFunctionCompletedTask(
    AsyncFunctionRunnerType * pAsyncFunctionRunner,
    ConvertResultFunc && convertResultFunc
);

Member Functions

run virtual inline

void run();

Securely control IoT edge devices from anywhere   Connect a Device