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