Skip to content

Commit 3638866

Browse files
committed
Add task_id for DTask
1 parent 2b70bf3 commit 3638866

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sch/eager.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,3 +134,6 @@ function _find_thunk(e::Dagger.DTask)
134134
unwrap_weak_checked(EAGER_STATE[].thunk_dict[tid])
135135
end
136136
end
137+
Dagger.task_id(t::Dagger.DTask) = lock(EAGER_ID_MAP) do id_map
138+
id_map[t.uid]
139+
end

0 commit comments

Comments
 (0)