1
0
mirror of https://github.com/danog/dns.git synced 2024-11-26 20:14:51 +01:00

Update for removal of Revolt\launch

This commit is contained in:
Aaron Piotrowski 2021-10-19 19:16:01 -05:00
parent 0ee5a9c323
commit 3407371451
No known key found for this signature in database
GPG Key ID: ADD1EF783EDE9EEB

View File

@ -14,7 +14,7 @@ use LibDNS\Messages\Message;
use LibDNS\Messages\MessageFactory;
use LibDNS\Messages\MessageTypes;
use LibDNS\Records\Question;
use function Revolt\launch;
use Revolt\EventLoop;
/** @internal */
abstract class Socket
@ -48,7 +48,7 @@ abstract class Socket
}
private function fetch(): void {
launch(function (): void {
EventLoop::queue(function (): void {
try {
$this->handleResolution(null, $this->receive());
} catch (\Throwable $exception) {