tasks.TaskQueueFunction interface
Stay organized with collections
Save and categorize content based on your preferences.
A handler for tasks.
Signature:
export interface TaskQueueFunction<T = 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<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.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-04-18 UTC.
[null,null,["Last updated 2023-04-18 UTC."],[],[],null,["A 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\ntasks.TaskQueueFunction.run()\n\nThe callback passed to the `TaskQueueFunction` constructor.\n\n**Signature:** \n\n run(request: Request\u003cT\u003e): void | Promise\u003cvoid\u003e;\n\nParameters\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."]]