View Source Ash.Flags (ash v2.15.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

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

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.