examples/internet/config.ru
# This method uses the `Async` method to create a reactor if required, and then executes the contained code without waiting for the result. So even if the search query takes a long time (e.g. 100ms), it won't hold up the request processing.
This method uses the `Async` method to create a reactor if required, and then executes the contained code without waiting for the result. So even if the search query takes a long time , it won't hold up the request processing.
This method uses the ` Async ` method to create a reactor if required and then executes the contained code without waiting for the result . So even if the search query takes a long time it won ' t hold up the request processing .
def async(close: !Async::Task.current?)
		Async do
			response = @internet.get("https://google.com/search?q=async+ruby")
			puts response.inspect
		ensure
			response&.finish
		end
	end
def async ( close : ! Async :: Task . current? ) Async do response = @internet . get ( "https://google.com/search?q=async+ruby" ) puts response . inspect ensure response &. finish end end
This method uses the `Async` method to create a reactor if required, and then executes the contained code without waiting for the result.
This method uses the ` Async ` method to create a reactor if required and then executes the contained code without waiting for the result .
close
<not_specific>
current?
<not_specific>