// retoor import "scheduler" for Scheduler class Dns { static lookup(hostname) { lookup(hostname, 0) } static lookup(hostname, family) { if (!(hostname is String)) Fiber.abort("Hostname must be a string.") if (family != 0 && family != 4 && family != 6) { Fiber.abort("Family must be 0 (any), 4 (IPv4), or 6 (IPv6).") } return Scheduler.await_ { lookup_(hostname, family, Fiber.current) } } foreign static lookup_(hostname, family, fiber) }