Skip to content

Commit 03586fb

Browse files
committed
Specify that the first argument to get(func, ::MultiThreadedCache, key) is a
`Base.Callable`. Thus avoiding Aqua ambiguities with `get(t::AbstractDict, key, default)`. Increment the minor version number.
1 parent ad3f8ae commit 03586fb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "MultiThreadedCaches"
22
uuid = "18056a9e-ed0c-4ef3-9ad7-376a7fb08032"
33
authors = ["Nathan Daly <[email protected]> and contributors"]
4-
version = "0.1.3"
4+
version = "0.1.4"
55

66
[compat]
77
julia = "1.3"

src/MultiThreadedCaches.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ end
120120

121121
const CACHE_MISS = :__MultiThreadedCaches_key_not_found__
122122

123-
function Base.get!(func, cache::MultiThreadedCache{K,V}, key) where {K,V}
123+
function Base.get!(func::Base.Callable, cache::MultiThreadedCache{K,V}, key) where {K,V}
124124
# If the thread-local cache has the value, we can return immediately.
125125
# We store tcache in a local variable, so that even if the Task migrates Threads, we are
126126
# still operating on the same initial cache object.

0 commit comments

Comments
 (0)