RaceEnabled returns whether the race detector is enabled. This is a constant at compile time. It should be used to conditionally skip tests that are known to be sensitive to being run with the race detector enabled. Please use sparingly and as a last resort.
()
| 6 | // being run with the race detector enabled. |
| 7 | // Please use sparingly and as a last resort. |
| 8 | func RaceEnabled() bool { |
| 9 | return raceEnabled |
| 10 | } |
no outgoing calls