[Haskell-beginners] Pure function with timeout
rpglover64 at gmail.com
Fri Mar 4 20:56:56 CET 2011
Using IORefs instead of MVars; seems to work fine and seems conceptually
On Fri, Mar 4, 2011 at 2:22 PM, Alex Rozenshteyn <rpglover64 at gmail.com>wrote:
> seems to work but seems inelegant.
> On Fri, Mar 4, 2011 at 2:04 PM, Alex Rozenshteyn <rpglover64 at gmail.com>wrote:
>> I read http://www.haskell.org/haskellwiki/Timing_out_computations
>> I thought I saw an issue and tested it:
>> IMO, the timeout function should return the last iterated value when it is
>> signaled, and not the next one after the signal.
>> Is there a convention for this behavior?
>> Alex R
> Alex R
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners