flix

0.61.0

Ping

eff PingSource

The effect used to determine if an address is reachable.

Operations

def isReachable(host: IpAddr, timeout: Int32, u: TimeUnit): Bool \ Ping Source

Definitions

def handle(f: a -> b \ ef): a -> Result[IoError, b] \ (ef - Ping) + Net + IO Source

Handles 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 Source

Runs the Ping effect of the given function f.

In other words, re-interprets the Ping effect using the IO effect.