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 + Net
SourceHandles the TcpAcceptWithResult
effect of the given function f
.
In other words, re-interprets the TcpAcceptWithResult
effect using the Net
and IO
effects.
def runWithIO(f: Unit -> a \ ef): a \ (ef - TcpAcceptWithResult) + IO + Net
SourceRuns the TcpAcceptWithResult
effect of the given function f
.
In other words, re-interprets the TcpAcceptWithResult
effect using the Net
and IO
effects.