network-transport-0.3.0.1: Network abstraction layer

Safe HaskellNone

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 EndPointAddressSource

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.