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