PingWithResult
eff PingWithResult
SourceThe effect used to determine if an address is reachable.
Operations
def isReachable(host: IpAddr, timeout: Int32, u: TimeUnit): Result[IoError, Bool] \ PingWithResult
SourceDefinitions
def handle(f: a -> b \ ef): a -> b \ (ef - PingWithResult) + Net + IO
SourceHandles the PingWithResult
effect of the given function f
.
In other words, re-interprets the PingWithResult
effect using the Net
and IO
effects.
def runWithIO(f: Unit -> a \ ef): a \ (ef - PingWithResult) + Net + IO
SourceRuns the PingWithResult
effect of the given function f
.
In other words, re-interprets the PingWithResult
effect using the IO
effect.