Commit 412ec28
authored
Resize execution context for spec with
When running specs with execution contexts, it's annoying to have to explicitly scale the default execution context in order to get actual parallelism. This could be handled in some kind of spec helper, but it would still require extra effort, and it'd be easy to miss out on it.
Thus we resize the EC in the stdlib `spec` package (i.e. for _any_ spec program) if the environment variable `CRYSTAL_WORKERS` is defined.CRYSTAL_WORKERS (#16444)1 parent 7bdbd04 commit 412ec28
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
133 | 139 | | |
134 | 140 | | |
135 | 141 | | |
| |||
0 commit comments