flix

0.79.0

TcpAccept

Effect for accepting TCP server connections, and its functions.

eff TcpAcceptSource

Effect for accepting TCP server connections.

Default Handler

runWithIO

Operations

def accept(server: TcpServer): Result[IoError, TcpSocket] \ TcpAccept§ Source

Accepts an incoming connection on server and returns the connected socket.

Definitions

def handle(f: a -> b \ ef): a -> b \ (ef - TcpAccept) + IO§ Source

Handles the TcpAccept effect of the given function f.

In other words, re-interprets the TcpAccept effect using the IO effect.

@DefaultHandler
def runWithIO(f: Unit -> a \ ef): a \ (ef - TcpAccept) + IO§ Source

Runs the TcpAccept effect of the given function f.

In other words, re-interprets the TcpAccept effect using the IO effect.