Read Plotting a Path to a Package Ecosystem without Data Race Errors. Here is explained how to enable checks: Enabling Complete Concurrency Checking.

Read Macros Swift documentation.