Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/utilities.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ macro task(ex...)
end
end
if domain === nothing
domain = :(Domain(string($__module__)))
domain = :($(Domain)(string($__module__)))
end

domain

quote
_domain = $(esc(domain))
_task = Task(_domain, $name)
_task = $(Task)(_domain, $name)
start(_task)
# Use Expr(:tryfinally, ...) so we don't introduce a new soft scope.
# TODO: switch to solution once https://github.com/JuliaLang/julia/pull/39217 is resolved
Expand Down