Skip to content

Commit 20a4845

Browse files
authored
Merge pull request #91 from pfitzseb/patch-1
Fix invokelatest
2 parents 3aefe11 + 88083f4 commit 20a4845

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/APIResponder.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,9 @@ function get_resp(api::Union{Nothing,APISpec}, status::Symbol, resp=nothing)
7878
end
7979
end
8080

81-
# Note: needs to be changed when https://github.com/JuliaLang/julia/pull/22646 is merged
8281
function dynamic_invoke(conn::APIResponder, f, args...; kwargs...)
83-
if conn.open && isdefined(Core, :_apply_latest)
84-
inner() = f(args...; kwargs...)
85-
Core._apply_latest(inner)
82+
if conn.open
83+
Base.invokelatest(f, args...; kwargs...)
8684
else
8785
f(args...; kwargs...)
8886
end

0 commit comments

Comments
 (0)