tasks.TaskQueueFunction interface

A handler for tasks.

Signature:

export interface TaskQueueFunction = any> extends HttpsFunction 

Extends: HttpsFunction

Methods

Method Description
run(request) The callback passed to the TaskQueueFunction constructor.

tasks.TaskQueueFunction.run()

The callback passed to the TaskQueueFunction constructor.

Signature:

run(request: Request): void | Promise;

Parameters

Parameter Type Description
request Request A TaskRequest containing data and auth information.

Returns:

void | Promise

Any return value. Google Cloud Functions will await any promise before shutting down your function. Resolved return values are only used for unit testing purposes.