[squeak-dev] Promise >> wait

Tobias Pape Das.Linux at gmx.de
Sat Feb 18 07:40:00 UTC 2017


Hey Tony,

On 17.02.2017, at 20:14, Tony Garnock-Jones <tonyg at ccs.neu.edu> wrote:

> Hi all,
> 

good to hear from you!


> The method Promise >> wait does nothing if the promise is rejected. This
> means that the waiting party waits... forever.
> 
> I suggest changing this so that wait signals some kind of BrokenPromise
> exception in the case that the promise is rejected.
> 
> Is this a good idea?

Sounds good to me!

Best regards
	-tobias
> 
> It's hard to see in the image anywhere the current behavior of wait
> might be being relied upon.
> 
> There are no tests for Promise>>wait in the current KernelTests.
> 
> I've submitted two proposed changes to the Inbox:
> 
> - Kernel-tonyg.1059.mcz alters Promise>>wait per the above
> - KernelTests-tonyg.318.mcz adds tests that expect the new behavior
> 
> Cheers,
>  Tony
> 



More information about the Squeak-dev mailing list