Poco::JS::Core

template < typename TParameterType, typename TResultType >

class AsyncFunctionFailedTask

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 fails by throwing an exception. It will reject the Promise with the thrown exception wrapped in an Error object.

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 >;

ParameterType

using ParameterType = TParameterType;

ResultType

using ResultType = TResultType;

Constructors

AsyncFunctionFailedTask inline

AsyncFunctionFailedTask(
    AsyncFunctionRunnerType * pAsyncFunctionRunner
);

Member Functions

run virtual inline

void run();

Securely control IoT edge devices from anywhere   Connect a Device