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 2025-06-04 UTC."],[],[],null,["# tasks.TaskQueueFunction interface\n\nA handler for tasks.\n\n**Signature:** \n\n export interface TaskQueueFunction \n\nProperties\n----------\n\n| Property | Type | Description |\n|--------------------------------------------------------------------------------------------------------|-------------------------|-------------|\n| [__endpoint](./firebase-functions.tasks.taskqueuefunction.md#taskstaskqueuefunction__endpoint) | ManifestEndpoint | |\n| [__requiredAPIs](./firebase-functions.tasks.taskqueuefunction.md#taskstaskqueuefunction__requiredapis) | ManifestRequiredAPI\\[\\] | |\n| [__trigger](./firebase-functions.tasks.taskqueuefunction.md#taskstaskqueuefunction__trigger) | unknown | |\n\nMethods\n-------\n\n| Method | Description |\n|-------------------------------------------------------------------------------------------------|-------------------------------------------------------------|\n| [run(data, context)](./firebase-functions.tasks.taskqueuefunction.md#taskstaskqueuefunctionrun) | The callback passed to the `TaskQueueFunction` constructor. |\n\ntasks.TaskQueueFunction.__endpoint\n----------------------------------\n\n**Signature:** \n\n __endpoint: ManifestEndpoint;\n\ntasks.TaskQueueFunction.__requiredAPIs\n--------------------------------------\n\n**Signature:** \n\n __requiredAPIs?: ManifestRequiredAPI[];\n\ntasks.TaskQueueFunction.__trigger\n---------------------------------\n\n**Signature:** \n\n __trigger: unknown;\n\ntasks.TaskQueueFunction.run()\n-----------------------------\n\nThe callback passed to the `TaskQueueFunction` constructor.\n\n**Signature:** \n\n run(data: any, context: TaskContext): void | Promise\u003cvoid\u003e;\n\n### Parameters\n\n| Parameter | Type | Description |\n|-----------|-------------------------------------------------------------------------------------|------------------------------------------|\n| data | any | The body enqueued into a task queue. |\n| context | [TaskContext](./firebase-functions.tasks.taskcontext.md#taskstaskcontext_interface) | The request context of the enqueued task |\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."]]