Library

constructor(name: String, functions: Set<Function<*>>, onLoad: (Context) -> Unit? = null, hooks: PipelineHooks? = null)

Parameters

name

name of the library

functions

functions the library makes available to call

onLoad

optional action to run when the library is loaded in a context

hooks

optional actions to run after each stage of a pipeline where this library is registered in has been completed