Runnable interface

A Runnable has a run method which directly invokes the user-defined function - useful for unit testing.

Signature:

export interface Runnable 

Properties

Property Type Description
run (data: T, context: any) => PromiseLike | any Directly invoke the user defined function.

Runnable.run

Directly invoke the user defined function.

Signature:

run: (data: T, context: any) => PromiseLike | any;