Functions

interceptor

interceptor<T>(before: () → Any, value: () → T, after: (T) → Any): T

Helper method to execute something before and after

Parameters
Name Description

before

The method to be executed before

value

The function to be executed

after

The function to be executed after