Check out the latest news from Firebase at Cloud Next 2025.
Learn more.
Runnable interface
A Runnable has a run
method which directly invokes the user-defined function - useful for unit testing.
Signature:
export interface Runnable<T>
Properties
Property |
Type |
Description |
run |
(data: T, context: any) => PromiseLike<any> | any |
Directly invoke the user defined function. |
Runnable.run
Directly invoke the user defined function.
Signature:
run: (data: T, context: any) => PromiseLike<any> | any;
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 2022-09-13 UTC.
[null,null,["Last updated 2022-09-13 UTC."],[],[]]