TcpConnect
eff TcpConnect
SourceThe effect used to connect to a TCP server.
Operations
def connect(ip: IpAddr, port: Int16): TcpSocket \ TcpConnect
SourceDefinitions
def handle(f: a -> b \ ef): a -> Result[IoError, b] \ (ef - TcpConnect) + IO + Net
SourceHandles 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
SourceRuns the TcpConnect
effect of the given function f
.
In other words, re-interprets the TcpConnect
effect using the Net
and IO
effects.