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
AsyncFunctionFailedTask(
AsyncFunctionRunnerType * pAsyncFunctionRunner
);
Member Functions
run
void run();
See also: Poco::Runnable::run()