File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -362,8 +362,6 @@ function replace_broadcast(fn::Symbol)
362
362
end
363
363
return fn
364
364
end
365
- # For TaskNames logging event
366
- Base. nameof (:: ExpandedBroadcast{F} ) where F = Symbol (' .' , nameof (F))
367
365
368
366
to_namedtuple (;kwargs... ) = (;kwargs... )
369
367
Original file line number Diff line number Diff line change @@ -105,11 +105,14 @@ function (::TaskNames)(ev::Event{:start})
105
105
if hasproperty (f, :instance ) && isdefined (f, :instance )
106
106
f = f. instance
107
107
end
108
- return " $(nameof (f)) [$id ]"
108
+ return " $(func_name (f)) [$id ]"
109
109
end
110
110
return
111
111
end
112
112
(td:: TaskNames )(ev:: Event{:finish} ) = nothing
113
+ func_name (f:: Function ) = nameof (f)
114
+ func_name (x) = repr (x)
115
+ func_name (:: Dagger.ExpandedBroadcast{F} ) where F = Symbol (' .' , nameof (F))
113
116
114
117
"""
115
118
TaskArguments
You can’t perform that action at this time.
0 commit comments