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 1909958 commit ada7e0cCopy full SHA for ada7e0c
test/copyable_task.jl
@@ -225,9 +225,7 @@
225
# Test calling a function that does something with the return value of `produce`.
226
# In this case it just returns it. This used to error, see
227
# https://github.com/TuringLang/Libtask.jl/issues/190.
228
- produce_wrapper(x) = Libtask.produce(x)
229
- Libtask.might_produce(::Type{<:Tuple{typeof(produce_wrapper),Any}}) = true
230
- f(obs) = produce_wrapper(obs)
+ f(obs) = produce(obs)
231
tt = Libtask.TapedTask(nothing, f, :a)
232
@test Libtask.consume(tt) === :a
233
@test Libtask.consume(tt) === nothing
0 commit comments