Skip to content

Commit 83ca6ef

Browse files
committed
comment on hack
1 parent df61580 commit 83ca6ef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/DistributionsExt.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ module DistributionsExt
2626

2727
# this installs exported symbols such as MyExtType to the parent module. Using println instead of @info can save 300ms on compilation.
2828
function __init__()
29+
# The @spawn is a hack to work around the new mechanisms in Julia 1.11 (in 1.10 you don't need it). This is probably not 100% safe, not knowing if the module loading code being touched is thread safe. It shows what's happening until a better solution is found.
2930
Threads.@spawn begin
3031
sleep(0.001)
3132
Core.eval(PackageExtensionsExample,

0 commit comments

Comments
 (0)