The callback passed to the TaskQueueFunction constructor.
tasks.TaskQueueFunction.run()
The callback passed to the TaskQueueFunction constructor.
Signature:
run(request:Request<T>):void|Promise<void>;
Parameters
Parameter
Type
Description
request
Request<T>
A TaskRequest containing data and auth information.
Returns:
void | Promise<void>
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-04-18 UTC."],[],[],null,["# tasks.TaskQueueFunction interface\n\nA handler for tasks.\n\n**Signature:** \n\n export interface TaskQueueFunction\u003cT = any\u003e extends HttpsFunction \n\n**Extends:** [HttpsFunction](./firebase-functions.https.md#httpshttpsfunction)\n\nMethods\n-------\n\n| Method | Description |\n|-------------------------------------------------------------------------------------------|-------------------------------------------------------------|\n| [run(request)](./firebase-functions.tasks.taskqueuefunction.md#taskstaskqueuefunctionrun) | The callback passed to the `TaskQueueFunction` constructor. |\n\ntasks.TaskQueueFunction.run()\n-----------------------------\n\nThe callback passed to the `TaskQueueFunction` constructor.\n\n**Signature:** \n\n run(request: Request\u003cT\u003e): void | Promise\u003cvoid\u003e;\n\n### Parameters\n\n| Parameter | Type | Description |\n|-----------|--------------|-----------------------------------------------------|\n| request | Request\\\u003cT\\\u003e | A TaskRequest containing data and auth information. |\n\n**Returns:**\n\nvoid \\| Promise\\\u003cvoid\\\u003e\n\nAny return value. Google Cloud Functions will await any promise before shutting down your function. Resolved return values are only used for unit testing purposes."]]