Skip to content

Commit d613e8e

Browse files
committed
Drop compat code for fetch(::Task) from #549
1 parent 2c001f0 commit d613e8e

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
@@ -76,8 +76,6 @@ Currently, the `@compat` macro supports the following syntaxes:
7676

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

79-
* `fetch` for `Task`s ([#25940]).
80-
8179
* `isbits(t::Type)` is now `isbitstype(t)` ([#26850]).
8280

8381
* `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
@@ -1071,3 +1071,10 @@ end
10711071
1 2 1 2 1 2
10721072
3 4 3 4 3 4]
10731073
@test repeat([1, 2], 1, 2, 3) == [x for x in 1:2, y in 1:2, z in 1:3]
1074+
1075+
# 0.7.0-DEV.3936
1076+
@test let ct = current_task(), t = @task true
1077+
schedule(ct)
1078+
yieldto(t)
1079+
fetch(t)
1080+
end

test/runtests.jl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,6 @@ end
8282

8383
@test codeunit("foo") == codeunit(SubString("fooαβγ",1,3)) == UInt8
8484

85-
# 0.7.0-DEV.3936
86-
@test let ct = current_task(), t = @task true
87-
schedule(ct)
88-
yieldto(t)
89-
fetch(t)
90-
end
91-
9285
# 0.7.0-DEV.5087
9386
@test isletter('a')
9487
@test isletter('β')

0 commit comments

Comments
 (0)