checkDnsEvents
fn
void checkDnsEvents(Slot, DnsManager, DispatchFn, RemoveFn, ErrorFn)(
scope Slot[] slots, ref DnsManager dnsManager,
scope DispatchFn dispatchFn, scope RemoveFn removeFn,
scope ErrorFn errorFn) @trusted nothrowCheck for pending DNS resolution events and dispatch callbacks.
Scans all DNS watcher slots. For each slot with a signalled wakeup handle, invokes the DNS callback with the resolved results.
Parameters
slots | Watcher slot array to scan. |
dnsManager | DNS data manager. |
dispatchFn | Callback: (ref Slot, Token, IpAddress[], DnsError) => void. |
removeFn | Callback: (uint index, ref Slot) => void. |
errorFn | Callback: (Token, Exception) => void. |