Fri, 25 May 2001 15:22:13 +0100, Simon Marlow <[EMAIL PROTECTED]> pisze:
> It is only really safe to put finalizers on primitive indivisible
> objects (which is why we have addForeignFinalizer, mkWeakIORef,
> and now addMVarFinalizer).
Shouldn't addMVarFinalizer be available through Concurrent i
> Okay, I suppose I ain't telling any news here, *but*
> *usually* people complained
> about finalizers being never run. I just discovered that my
> finalizers are run
> *too* *early*, probably because of unsafe{Perform,Interleave}IO:
>
> Consider this fragment which will interleave two
> list
Okay, I suppose I ain't telling any news here, *but* *usually* people complained
about finalizers being never run. I just discovered that my finalizers are run
*too* *early*, probably because of unsafe{Perform,Interleave}IO:
Consider this fragment which will interleave two lists/streams (they're