Runnable interface
Stay organized with collections
Save and categorize content based on your preferences.
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."],[],[],null,["A Runnable has a `run` method which directly invokes the user-defined function - useful for unit testing.\n\n**Signature:** \n\n export interface Runnable\u003cT\u003e \n\nProperties\n\nRunnable.run\n\nDirectly invoke the user defined function.\n\n**Signature:** \n\n run: (data: T, context: any) =\u003e PromiseLike\u003cany\u003e | any;"]]