Async example?
dragonattack opened this issue · comments
Igor Lugis commented
Can you please share a link to example of async dns query loop of 500 domains for example.
Of course, simply changing Dns\resolve($domain)
in /examples/benchmark.php
to:
$host = Amp\Future\awaitFirst([
Amp\async(fn() => Dns\resolve($domain, Dns\DnsRecord::A)),
]);
doesn't make any difference.