DnsWithResult
eff DnsWithResult
Sourcean effect for resolving a domain name to an ip address
Operations
def lookup(host: String): Result[IoError, IpAddr] \ DnsWithResult
Sourcedef lookupAll(host: String): Result[IoError, List[IpAddr]] \ DnsWithResult
SourceDefinitions
def handle(f: a -> b \ ef): a -> b \ (ef - DnsWithResult) + Net + IO
SourceHandles the DnsWithResult
effect of the given function f
.
In other words, re-interprets the DnsWithResult
effect using the Net
and IO
effects.
def runWithIO(f: Unit -> a \ ef): a \ (ef - DnsWithResult) + Net + IO
SourceHandles the DnsWithResult
effect of the given function f
.
In other words, re-interprets the DnsWithResult
effect using the Net
and IO
effects.