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
SourceHandles the TcpConnect
effect of the given function f
.
In other words, re-interprets the TcpConnect
effect using the IO
effect.
def runWithIO(f: Unit -> a \ ef): Result[IoError, a] \ (ef - TcpConnect) + IO
SourceRuns the TcpConnect
effect of the given function f
.
In other words, re-interprets the TcpConnect
effect using the IO
effect.