@@ -31,26 +31,26 @@ public MainWindow() : base(App.Runtime)
3131 /// Register the window events
3232 /// </summary>
3333 Eff < MinRT , Unit > startup =>
34- from _1 in tickIO . Fork ( )
35- from _2 in ( onMouseMove | Proxy . repeat ( showMousePos ) ) . RunEffect ( ) . Fork ( )
34+ from _1 in tickIO . ForkIO ( ) . As ( )
35+ from _2 in ( onMouseMove | Proxy . repeat ( showMousePos ) ) . RunEffect ( ) . ForkIO ( )
3636 select unit ;
3737
3838 /// <summary>
3939 /// Infinite loop that ticks every second
4040 /// </summary>
4141 Eff < MinRT , Unit > tickIO =>
4242 from _1 in modifyCount ( x => x + 1 )
43- from _2 in post ( setContent ( CounterButton , $ "{ count } ") )
43+ from _2 in postIO ( setContent ( CounterButton , $ "{ count } ") )
4444 from _3 in waitFor ( 1 )
4545 from _4 in tickIO // tail(tickIO)
4646 select unit ;
4747
4848 Consumer < MouseEventArgs , Eff < MinRT > , Unit > showMousePos =>
4949 from e in Proxy . awaiting < MouseEventArgs > ( )
50- from _ in post ( from p in getPosition ( e )
51- from x in setContent ( CursorTextBoxX , $ "X: { p . X : F0} ")
52- from y in setContent ( CursorTextBoxY , $ "Y: { p . Y : F0} ")
53- select unit )
50+ from _ in postIO ( from p in getPosition ( e )
51+ from x in setContent ( CursorTextBoxX , $ "X: { p . X : F0} ")
52+ from y in setContent ( CursorTextBoxY , $ "Y: { p . Y : F0} ")
53+ select unit )
5454 select unit ;
5555
5656 /// <summary>
@@ -64,7 +64,7 @@ void ButtonOnClick(object? sender, RoutedEventArgs e) =>
6464 /// </summary>
6565 Eff < MinRT , Unit > buttonOnClickIO =>
6666 from _1 in resetCount
67- from _2 in post ( setContent ( CounterButton , $ "{ count } ") )
67+ from _2 in postIO ( setContent ( CounterButton , $ "{ count } ") )
6868 select unit ;
6969
7070 /// <summary>
0 commit comments