as Default
Sets this instance as defaultInstance and returns it.
Runs block with this instance as the default, restoring the previous default when the block exits. Use for scoped overrides such as per-request tenants.
stormify.asDefault { s -> s.read<User>(...) }Content copied to clipboard