Commit 73f153d
authored
Enable lazier initialization of Dispatchers.IO (#4166)
Currently, any reference to Dispatchers class, including many calls
to Dispatchers.Default, force Dispatchers.IO to be initialized. This
incurs several system property reads and other expensive operations
even if Dispatchers.IO is never used.
This PR changes this by delaying Dispatchers.IO initialization
until it's first accessed.1 parent 2397ffc commit 73f153d
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
0 commit comments