Skip to main content

setupmethod

Wraps a method to ensure it is only called before the application setup has finished by invoking the instance's setup check.

def setupmethod(
f: F
) - > F

Wraps a method to ensure it is only called before the application or blueprint setup is finished.

Parameters

NameTypeDescription
fFThe function or method to be decorated and protected by the setup check.

Returns

TypeDescription
FThe wrapped function which includes a precondition check for the setup state.