ports-0.4.3.1: The Haskell Ports LibrarySource codeContentsIndex
Control.Concurrent.PortThreads
Description

Haskell Ports Library: ports consumed in a specific thread

Author : Manuel M T Chakravarty Created: 18 June 2003

Version $Revision: 1.1 $ from $Date: 20030622 15:25:32 $

Copyright (c) 2003 Manuel M T Chakravarty

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.

Synopsis
spawn :: a -> ([a] -> IO ()) -> IO (Port a)
spawn_ :: ([a] -> IO ()) -> IO (Port a)
spawn2 :: a -> b -> ([a] -> [b] -> IO ()) -> IO (Port a, Port b)
spawn2_ :: ([a] -> [b] -> IO ()) -> IO (Port a, Port b)
Documentation
spawn :: a -> ([a] -> IO ()) -> IO (Port a)Source

Fork a thread listening to a newly generated port

FIXME: should this be called newPort?

spawn_ :: ([a] -> IO ()) -> IO (Port a)Source
spawn2 :: a -> b -> ([a] -> [b] -> IO ()) -> IO (Port a, Port b)Source
spawn2_ :: ([a] -> [b] -> IO ()) -> IO (Port a, Port b)Source
Produced by Haddock version 2.6.0