in Pharo 3.0 you can write that a tad more elegant:
On 2013-05-01, at 19:01, Nicolas Cellier <nicolas.cellier.aka.nice@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
] valueAfterWaiting: 2 hours
[
� � WorldState addDeferredUIMessage: [
� � � � UIManager default inform: 'You''re Smalltalking too much
There are other nice things worth in life' ].
and in general for waiting on delays you now can do:
2 hours wait
that hides away quite some details :)