network-transport-0.5.1: Network abstraction layer

Safe HaskellNone
LanguageHaskell98

Network.Transport.Util

Description

Utility functions

Note: this module is bound to change even more than the rest of the API :)

Synopsis

Documentation

spawn :: Transport -> (EndPoint -> IO ()) -> IO EndPointAddress Source #

Fork a new thread, create a new end point on that thread, and run the specified IO operation on that thread.

Returns the address of the new end point.