JuliaLang / Downloads.jl

MIT License
89 stars 34 forks source link

register `atexit` hook on module `_init_` #242

Open sjkelly opened 2 months ago

sjkelly commented 2 months ago

These hooks are usually registered at module __init__, partially to make the code easier to reason about. Though this now has greater significance with improved static compilation techniques, since the __init__ is the module entry and anything outside will be discarded from what I can tell.

KristofferC commented 2 months ago

Yeah that makes sense. The previous behavior feels broken...