[[["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-07-10 UTC."],[],[],null,["# tasks namespace\n\nFunctions\n---------\n\n| Function | Description |\n|-------------------------------------------------------------------------------------------|-----------------------------------------------------------------|\n| [onTaskDispatched(handler)](./firebase-functions.tasks.md#tasksontaskdispatched) | Creates a handler for tasks sent to a Google Cloud Tasks queue. |\n| [onTaskDispatched(options, handler)](./firebase-functions.tasks.md#tasksontaskdispatched) | Creates a handler for tasks sent to a Google Cloud Tasks queue. |\n\nInterfaces\n----------\n\n| Interface | Description |\n|-------------------------------------------------------------------------------------------------------|----------------------------------------------------------------|\n| [AuthData](./firebase-functions.tasks.authdata.md#tasksauthdata_interface) | Metadata about the authorization used to invoke a function. |\n| [RateLimits](./firebase-functions.tasks.ratelimits.md#tasksratelimits_interface) | How congestion control should be applied to the function. |\n| [RetryConfig](./firebase-functions.tasks.retryconfig.md#tasksretryconfig_interface) | How a task should be retried in the event of a non-2xx return. |\n| [TaskQueueFunction](./firebase-functions.tasks.taskqueuefunction.md#taskstaskqueuefunction_interface) | A handler for tasks. |\n| [TaskQueueOptions](./firebase-functions.tasks.taskqueueoptions.md#taskstaskqueueoptions_interface) | |\n\nType Aliases\n------------\n\n| Type Alias | Description |\n|-------------------------------------------------------|-------------------------------------------------|\n| [Request](./firebase-functions.tasks.md#tasksrequest) | The request used to call a task queue function. |\n\ntasks.onTaskDispatched()\n------------------------\n\nCreates a handler for tasks sent to a Google Cloud Tasks queue.\n\n**Signature:** \n\n export declare function onTaskDispatched\u003cArgs = any\u003e(handler: (request: Request\u003cArgs\u003e) =\u003e void | Promise\u003cvoid\u003e): TaskQueueFunction\u003cArgs\u003e;\n\n### Parameters\n\n| Parameter | Type | Description |\n|-----------|--------------------------------------------------------|-------------------------------------|\n| handler | (request: Request\\\u003cArgs\\\u003e) =\\\u003e void \\| Promise\\\u003cvoid\\\u003e | A callback to handle task requests. |\n\n**Returns:**\n\n[TaskQueueFunction](./firebase-functions.tasks.taskqueuefunction.md#taskstaskqueuefunction_interface)\\\u003cArgs\\\u003e\n\nA function you can export and deploy.\n\ntasks.onTaskDispatched()\n------------------------\n\nCreates a handler for tasks sent to a Google Cloud Tasks queue.\n\n**Signature:** \n\n export declare function onTaskDispatched\u003cArgs = any\u003e(options: TaskQueueOptions, handler: (request: Request\u003cArgs\u003e) =\u003e void | Promise\u003cvoid\u003e): TaskQueueFunction\u003cArgs\u003e;\n\n### Parameters\n\n| Parameter | Type | Description |\n|-----------|----------------------------------------------------------------------------------------------------|-----------------------------------------------------|\n| options | [TaskQueueOptions](./firebase-functions.tasks.taskqueueoptions.md#taskstaskqueueoptions_interface) | Configuration for the task queue or Cloud Function. |\n| handler | (request: Request\\\u003cArgs\\\u003e) =\\\u003e void \\| Promise\\\u003cvoid\\\u003e | A callback to handle task requests. |\n\n**Returns:**\n\n[TaskQueueFunction](./firebase-functions.tasks.taskqueuefunction.md#taskstaskqueuefunction_interface)\\\u003cArgs\\\u003e\n\nA function you can export and deploy.\n\ntasks.Request\n-------------\n\nThe request used to call a task queue function.\n\n**Signature:** \n\n export type Request\u003cT = any\u003e = TaskContext & {\n data: T;\n };"]]