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 ec1d89d commit 0962608Copy full SHA for 0962608
src/copyable_task.jl
@@ -63,6 +63,14 @@ function callable_ret_type(sig, produce_types)
63
return Union{Base.code_ircode_by_type(sig)[1][2],produce_type}
64
end
65
66
+"""
67
+ build_callable(sig::Type{<:Tuple})
68
+
69
+Returns a `MistyClosure` which is used by `TapedTask` to implement the
70
+`produce`-`consume` interface. If this method has been called using `sig` in
71
+the current world age, will make a copy of an existing `MistyClosure`. If not,
72
+will derive it from scratch (derive the IR + compile it etc).
73
74
function build_callable(sig::Type{<:Tuple})
75
key = CacheKey(Base.get_world_counter(), sig)
76
if haskey(mc_cache, key)
0 commit comments