April 23, 2013
10:46 a.m.
On 23 April 2013 05:16, Sean P. DeNigris <sean@clipperadams.com> wrote:
If my object is using a process internally that should run only as long as the object is around, how do I do that? I searched the ml's for "Finalization", but couldn't quite make sense of the process.
you don't need finalization.. just a weak reference. something like this: array := WeakArray with: myObject. [[ array first notNil] whileTrue: [ ...... ]] fork.
Thanks!
----- Cheers, Sean -- View this message in context: http://forum.world.st/Terminating-a-Process-when-an-object-dies-tp4683036.ht... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
-- Best regards, Igor Stasenko.