Is it possible to have a version of forkIO that allows 'thread-objects' to return values?
74 views
Skip to first unread message
Dan
unread,
Feb 10, 2013, 3:55:53 PM2/10/13
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Ie. a forkIO with type signature IO a -> IO (ThreadId , a)
Can such a thing be implemented without compromising paralelism?
Paul Rubin
unread,
Feb 10, 2013, 4:04:12 PM2/10/13
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Dan <dan.ms...@gmail.com> writes:
> Ie. a forkIO with type signature IO a -> IO (ThreadId , a)
> Can such a thing be implemented without compromising paralelism?
If I understand the question, usually you would pass the return value
back through an MVar.