Skip to content

Commit e154827

Browse files
committed
Drop compat code for fetch(::Task) from #549
1 parent d77d3b0 commit e154827

File tree

4 files changed

+7
-13
lines changed

4 files changed

+7
-13
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ Currently, the `@compat` macro supports the following syntaxes:
7474

7575
* Single-argument `permutedims(x)` for matrices and vectors ([#24839]).
7676

77-
* `fetch` for `Task`s ([#25940]).
78-
7977
* `isbits(t::Type)` is now `isbitstype(t)` ([#26850]).
8078

8179
* `something` to get the first argument different from `nothing`, unwrapping those

src/Compat.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@ end
7878
end
7979
end
8080

81-
@static if VERSION < v"0.7.0-DEV.3936"
82-
Base.fetch(t::Task) = wait(t)
83-
end
84-
8581
# https://github.com/JuliaLang/julia/pull/27077
8682
@static if VERSION < v"0.7.0-DEV.5087"
8783
export isletter

test/old.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,3 +1066,10 @@ end
10661066
1 2 1 2 1 2
10671067
3 4 3 4 3 4]
10681068
@test repeat([1, 2], 1, 2, 3) == [x for x in 1:2, y in 1:2, z in 1:3]
1069+
1070+
# 0.7.0-DEV.3936
1071+
@test let ct = current_task(), t = @task true
1072+
schedule(ct)
1073+
yieldto(t)
1074+
fetch(t)
1075+
end

test/runtests.jl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,6 @@ end
8787
@test length(Compat.CartesianIndices((1:2,))) == 2
8888
@test length(Compat.CartesianIndices((1:2, -1:1))) == 6
8989

90-
# 0.7.0-DEV.3936
91-
@test let ct = current_task(), t = @task true
92-
schedule(ct)
93-
yieldto(t)
94-
fetch(t)
95-
end
96-
9790
# 0.7.0-DEV.5087
9891
@test isletter('a')
9992
@test isletter('β')

0 commit comments

Comments
 (0)