[racket-dev] FrTime propagation bug

From: Marijn (hkBst at gentoo.org)
Date: Fri Jan 13 03:55:21 EST 2012

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12-01-12 18:27, Gregory Cooper wrote:
> Hi Marijn,
> 
> The value-now/sync procedure waits for propagation to complete
> before reading a signal's value.  Would something like the
> following suit your purposes?
> 
> (define a (event-receiver)) (define b (event-receiver)) (define a+b
> (+ (hold a) (hold b))) (send-event a 3) (send-event b 5) 
> (value-now/sync a+b)  ; read a+b after propagation => 8
> 
> Or, even simpler:
> 
> (define c (new-cell)) (define d (new-cell)) (define c+d (+ c d)) 
> (set-cell! c 3) (set-cell! d 5) (value-now/sync c+d)
> 
> Greg

Thanks Greg, that helps a lot,

Marijn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8P8XkACgkQp/VmCx0OL2z0zACeJC+KOeUcuykFuCo8zfUv/nnm
RhQAnAvkx7TelLpiQHqSHr26Pu0BC8Ib
=KRNI
-----END PGP SIGNATURE-----


Posted on the dev mailing list.