Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8343da3

Browse files
committedJul 22, 2024·
fixup! Add fetch_all recursive helper
1 parent c5d6587 commit 8343da3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎test/thunk.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -355,9 +355,9 @@ end
355355
cs = map(t->fetch(t; raw=true), ts)
356356
@test Dagger.fetch_all(cs) == [2, 2, 2, 2]
357357

358-
ts = (Dagger.@spawn(1+1) for _ in 1:4)
358+
ts = Tuple(Dagger.@spawn(1+1) for _ in 1:4)
359359
@test Dagger.fetch_all(ts) == (2, 2, 2, 2)
360-
cs = map(t->fetch(t; raw=true), ts)
360+
cs = fetch.(ts; raw=true)
361361
@test Dagger.fetch_all(cs) == (2, 2, 2, 2)
362362

363363
t = Dagger.@spawn 1+1

0 commit comments

Comments
 (0)
Please sign in to comment.