On 2013-05-01, at 19:01, Nicolas Cellier <nicolas.cellier.aka.n...@gmail.com> 
wrote:

> Yes, great superpowers!
> A bit more lightweight and efficient than abort(); gdb myApp core
> 
> A small reminder for myself:
> 
> [
> (Delay forSeconds: 2 hours asSeconds) wait.
> WorldState addDeferredUIMessage: [ UIManager default inform: 'You''re
> Smalltalking too much
> There are other nice things worth in life' ].
> ] fork

in Pharo 3.0 you can write that a tad more elegant:

[
    WorldState addDeferredUIMessage: [ 
        UIManager default inform: 'You''re Smalltalking too much
There are other nice things worth in life' ].
] valueAfterWaiting: 2 hours

and in general for waiting on delays you now can do:

2 hours wait

that hides away quite some details :)

Reply via email to