Skip to content

Commit

Permalink
typo with cleanup functions
Browse files Browse the repository at this point in the history
  • Loading branch information
schlichtanders committed Aug 31, 2024
1 parent 37788b2 commit a01ce46
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "JolinPluto"
uuid = "5b0b4ef8-f4e6-4363-b674-3f031f7b9530"
authors = ["Stephan Sahm <[email protected]> and contributors"]
version = "0.1.80"
version = "0.1.81"

[deps]
AbstractPlutoDingetjes = "6e696c72-6542-2067-7265-42206c756150"
Expand Down
4 changes: 2 additions & 2 deletions src/setter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ macro get(setter)

if $firsttime[]
$firsttime[] = false
cleanup = $(Main.PlutoRunner.GiveMeRegisterCleanupFunction)
cleanup = $(Main.PlutoRunner.GiveMeRegisterCleanupFunction())
cleanup() do
if setter.rerun === rerun
setter.rerun = nothing
Expand Down Expand Up @@ -172,7 +172,7 @@ macro cell_ids_push!(setter)
setter() do cell_ids
push!(cell_ids, cell_id)
end
cleanup = $(Main.PlutoRunner.GiveMeRegisterCleanupFunction)
cleanup = $(Main.PlutoRunner.GiveMeRegisterCleanupFunction())
cleanup() do
setter() do cell_ids
delete!(cell_ids, cell_id)
Expand Down
4 changes: 2 additions & 2 deletions src/tasks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ macro repeat_run(init, repeatme=init)
:(let
if $firsttime[]
$rerun[] = $(Main.PlutoRunner.GiveMeRerunCellFunction())
register_cleanup_fn = $(Main.PlutoRunner.GiveMeRegisterCleanupFunction)
register_cleanup_fn = $(Main.PlutoRunner.GiveMeRegisterCleanupFunction())
register_cleanup_fn($(create_taskref_cleanup(task)))
$firsttime[] = false
end
Expand Down Expand Up @@ -427,7 +427,7 @@ macro Channel(args...)
chnl = Channel($(map(esc, args)...); taskref=$task)

if $firsttime[]
register_cleanup_fn = $(Main.PlutoRunner.GiveMeRegisterCleanupFunction)
register_cleanup_fn = $(Main.PlutoRunner.GiveMeRegisterCleanupFunction())
register_cleanup_fn($(create_taskref_cleanup(task)))
$firsttime[] = false
end
Expand Down

0 comments on commit a01ce46

Please sign in to comment.