flix

0.70.0

Net.TcpConnect

eff TcpConnectSource

The effect used to connect to a TCP server.

Operations

def connect(ip: IpAddr, port: Int16): Result[IoError, TcpSocket] \ TcpConnect Source

Definitions

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

Handles the TcpConnect effect of the given function f.

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

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

Runs the TcpConnect effect of the given function f.

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