flix

0.70.0

Net.Ping

eff PingSource

The effect used to determine if an address is reachable.

Operations

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

Definitions

def handle(f: a -> b \ ef): a -> b \ (ef - Ping) + IO Source

Handles the Ping effect of the given function f.

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

@DefaultHandler
def runWithIO(f: Unit -> a \ ef): a \ (ef - Ping) + IO Source

Runs the Ping effect of the given function f.

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