Skip to content

Commit 036c38a

Browse files
committed
Remove await
1 parent 960ad5a commit 036c38a

File tree

2 files changed

+0
-98
lines changed

2 files changed

+0
-98
lines changed

lib/phlex/sgml.rb

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,6 @@ def view_template
5050
end
5151
end
5252

53-
def await(task)
54-
case task
55-
when defined?(Concurrent::IVar) && Concurrent::IVar
56-
flush if task.pending?
57-
task.wait.value
58-
when defined?(Async::Task) && Async::Task
59-
flush if task.running?
60-
task.wait
61-
else
62-
raise Phlex::ArgumentError.new("Expected an asynchronous task / promise.")
63-
end
64-
end
65-
6653
def to_proc
6754
proc { |c| c.render(self) }
6855
end

quickdraw/sgml/await.test.rb

Lines changed: 0 additions & 85 deletions
This file was deleted.

0 commit comments

Comments
 (0)