flix

0.61.0

TcpConnect

eff TcpConnectSource

The effect used to connect to a TCP server.

Operations

def connect(ip: IpAddr, port: Int16): TcpSocket \ TcpConnect Source

Definitions

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

Handles the TcpConnect effect of the given function f.

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

def runWithIO(f: Unit -> a \ ef): Result[IoError, a] \ (ef - TcpConnect) + IO + Net Source

Runs the TcpConnect effect of the given function f.

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