Skip to content

Commit

Permalink
Merge pull request #527 from JuliaParallel/jps/deprecate-delayed-less…
Browse files Browse the repository at this point in the history
…-noisy

delayed: Make depwarn less noisy
  • Loading branch information
jpsamaroo authored Jun 4, 2024
2 parents 2972cac + 22fe776 commit a63bbd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/thunk.jl
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ function _delayed(f, options::Options)
(args...; kwargs...) -> Thunk(f, args_kwargs_to_pairs(args, kwargs)...; options.options...)
end
function delayed(f, options::Options)
Base.depwarn("`delayed` is deprecated. Use `Dagger.@spawn` or `Dagger.spawn` instead.", :delayed; force=true)
@warn "`delayed` is deprecated. Use `Dagger.@spawn` or `Dagger.spawn` instead." maxlog=1
return _delayed(f, options)
end
delayed(f; kwargs...) = delayed(f, Options(;kwargs...))
Expand Down

0 comments on commit a63bbd9

Please sign in to comment.