Skip to content

Commit

Permalink
Remove await
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldrapper committed Nov 26, 2024
1 parent 960ad5a commit 036c38a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 98 deletions.
13 changes: 0 additions & 13 deletions lib/phlex/sgml.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,6 @@ def view_template
end
end

def await(task)
case task
when defined?(Concurrent::IVar) && Concurrent::IVar
flush if task.pending?
task.wait.value
when defined?(Async::Task) && Async::Task
flush if task.running?
task.wait
else
raise Phlex::ArgumentError.new("Expected an asynchronous task / promise.")
end
end

def to_proc
proc { |c| c.render(self) }
end
Expand Down
85 changes: 0 additions & 85 deletions quickdraw/sgml/await.test.rb

This file was deleted.

0 comments on commit 036c38a

Please sign in to comment.