[[["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-24 UTC."],[],[],null,["# tasks.TaskQueueBuilder class\n\nBuilder for creating a `TaskQueueFunction`.\n\n**Signature:** \n\n export declare class TaskQueueBuilder \n\nMethods\n-------\n\n| Method | Modifiers | Description |\n|-------------------------------------------------------------------------------------------------------|-----------|-----------------------------------------------------------------|\n| [onDispatch(handler)](./firebase-functions.tasks.taskqueuebuilder.md#taskstaskqueuebuilderondispatch) | | Creates a handler for tasks sent to a Google Cloud Tasks queue. |\n\ntasks.TaskQueueBuilder.onDispatch()\n-----------------------------------\n\nCreates a handler for tasks sent to a Google Cloud Tasks queue.\n\n**Signature:** \n\n onDispatch(handler: (data: any, context: TaskContext) =\u003e void | Promise\u003cvoid\u003e): TaskQueueFunction;\n\n### Parameters\n\n| Parameter | Type | Description |\n|-----------|---------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------|\n| handler | (data: any, context: [TaskContext](./firebase-functions.tasks.taskcontext.md#taskstaskcontext_interface)) =\\\u003e void \\| Promise\\\u003cvoid\\\u003e | A callback to handle task requests. |\n\n**Returns:**\n\n[TaskQueueFunction](./firebase-functions.tasks.taskqueuefunction.md#taskstaskqueuefunction_interface)\n\nA function you can export and deploy."]]