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