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 c7bac76 commit 1cecf7dCopy full SHA for 1cecf7d
src/tapedtask.jl
@@ -162,6 +162,8 @@ Base.IteratorEltype(::Type{<:TapedTask}) = Base.EltypeUnknown()
162
# copy the task
163
164
function Base.copy(t::TapedTask; args=())
165
+ length(args) > 0 && t.tf.counter >1 &&
166
+ error("can't copy started task with new arguments")
167
tf = copy(t.tf)
168
task_args = if length(args) > 0
169
typeof(args) == typeof(t.args) || error("bad arguments")
0 commit comments