Split tasks - event loop now properly asynchronous (#57)

DNS, etc. does no longer block the event loop
This commit is contained in:
Ferdinand Schober
2023-12-23 14:46:38 +01:00
committed by GitHub
parent 1cefa38543
commit cdd3a3b818
4 changed files with 639 additions and 385 deletions

View File

@@ -3,7 +3,7 @@ use std::{error::Error, net::IpAddr};
use trust_dns_resolver::TokioAsyncResolver;
pub(crate) struct DnsResolver {
pub struct DnsResolver {
resolver: TokioAsyncResolver,
}
impl DnsResolver {