We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4133b9a commit 4cba2f6Copy full SHA for 4cba2f6
src/options.jl
@@ -13,7 +13,8 @@ scope. Note that setting an option here will propagate its value across Julia
13
or Dagger tasks spawned by `f()` or its callees (i.e. the options propagate).
14
"""
15
function with_options(f, options::NamedTuple)
16
- with(options_context => options) do
+ prev_options = options_context[]
17
+ with(options_context => merge(prev_options, options)) do
18
f()
19
end
20
0 commit comments