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
| Name | Type | Description |
|---|---|---|
| f | F | The function or method to be decorated and protected by the setup check. |
Returns
| Type | Description |
|---|---|
F | The wrapped function which includes a precondition check for the setup state. |