TcpConnectWithResult
eff TcpConnectWithResult
SourceThe effect used to connect to a TCP server.
Operations
def connect(ip: IpAddr, port: Int16): Result[IoError, TcpSocket] \ TcpConnectWithResult
SourceDefinitions
def handle(f: a -> b \ ef): a -> b \ (ef - TcpConnectWithResult) + IO
SourceHandles the TcpConnectWithResult
effect of the given function f
.
In other words, re-interprets the TcpConnectWithResult
effect using the IO
effect.
def runWithIO(f: Unit -> a \ ef): a \ (ef - TcpConnectWithResult) + IO
SourceRuns the TcpConnectWithResult
effect of the given function f
.
In other words, re-interprets the TcpConnectWithResult
effect using the IO
effect.