AshleyYakeley / Truth

Changes and Pinafore projects. Pull requests not accepted.
https://pinafore.info/
GNU General Public License v2.0
32 stars 0 forks source link

close-update deadlock #218

Closed AshleyYakeley closed 1 year ago

AshleyYakeley commented 1 year ago

This deadlocks:

#!/usr/bin/env -S pinafore
import "pinafore-gnome" in
with GTK. in
run.GTK $ fn gtk =>
let

    eui: Element
    = exec.Element $ do
        sleep $ Seconds 0.2;
        pure.Action blank.Element;
        end;

in do
    ref <- newMem.WholeModel;
    w <- open.Window gtk (600,800) {"Window"} $ dynamic.Element $ coMap.WholeModel (fn _ => eui) ref;
    ref := ();
    sleep $ Seconds 0.1;
    close.Window w;
    end
AshleyYakeley commented 1 year ago

Fixed.