Skip to content

Commit 0962608

Browse files
committed
Docstring for build_callable
1 parent ec1d89d commit 0962608

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/copyable_task.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,14 @@ function callable_ret_type(sig, produce_types)
6363
return Union{Base.code_ircode_by_type(sig)[1][2],produce_type}
6464
end
6565

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+
"""
6674
function build_callable(sig::Type{<:Tuple})
6775
key = CacheKey(Base.get_world_counter(), sig)
6876
if haskey(mc_cache, key)

0 commit comments

Comments
 (0)