Skip to content

Commit 5a5b5a5

Browse files
Remove signal alias.
1 parent ee39fef commit 5a5b5a5

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

lib/async/promise.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,5 @@ def fulfill(&block)
183183
self.resolve(nil) unless @resolved
184184
end
185185
end
186-
187-
# Alias for resolve to match common promise APIs.
188-
alias signal resolve
189186
end
190187
end

test/async/promise.rb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -189,15 +189,6 @@
189189
end
190190
end
191191

192-
with "signal alias" do
193-
it "signal behaves like resolve" do
194-
promise.signal(:aliased_value)
195-
196-
expect(promise.resolved?).to be == true
197-
expect(promise.wait).to be == :aliased_value
198-
end
199-
end
200-
201192
with "warning suppression" do
202193
it "can suppress warnings for expected failures" do
203194
promise.suppress_warnings!

0 commit comments

Comments
 (0)