View Source Ash.Flags (ash v2.17.0)

Feature flagging support for Ash internals.

These are macros so that they can be used at compile time to switch code paths.

Summary

Functions

Should we activate Ash 3.0 features?

Ensure that the feature flag is set to the expected value, otherwise an exception will be thrown at run time.

Should read actions use the new flow-based executor?

Ensure that the feature flag is set to the expected value, otherwise an exception will be thrown at run time.

Functions

@spec ash_three?() :: Macro.t()

Should we activate Ash 3.0 features?

Link to this macro

assert!(flag, expected)

View Source (macro)
@spec assert!(atom(), any()) :: Macro.t()

Ensure that the feature flag is set to the expected value, otherwise an exception will be thrown at run time.

Link to this macro

read_uses_flow?()

View Source (macro)
@spec read_uses_flow?() :: Macro.t()

Should read actions use the new flow-based executor?

Link to this macro

refute!(flag, expected)

View Source (macro)
@spec refute!(atom(), any()) :: Macro.t()

Ensure that the feature flag is set to the expected value, otherwise an exception will be thrown at run time.