Runnable interface

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

Signature:

exportinterfaceRunnable<T>

Properties

PropertyTypeDescription
run(data: T, context: any) => PromiseLike<any> | anyDirectly invoke the user defined function.

Runnable.run

Directly invoke the user defined function.

Signature:

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