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:
parent
0ee5a9c323
commit
3407371451
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user