[Stackless] killing tasklets
Kristján Valur Jónsson
kristjan at ccpgames.com
Wed Nov 28 15:03:19 CET 2007
Sorry about the noise, it seems I was mistaken. Tasklets that have yield()ed, are properly killed as advertised.
> -----Original Message-----
> From: Kristján Valur Jónsson
> Sent: Friday, November 23, 2007 16:41
> To: Kristján Valur Jónsson; Christian Tismer
> Cc: Stackless mailing list
> Subject: RE: Re: [Stackless] killing tasklets
> One additional thing:
> tasklet.kill() only causes an exception for a tasklet if it is blocked
> on a channel, apparently.
> A tasklet that has done stackless.schedule(), and receives a kill(),
> just silently goes away, that is, its frames are just released and
> nothing runs more.
> I think that we should always get a TaskletExit exception, so that
> proper cleanup can be performed. At least if there is a frame. For
> tasklets that haven't run yet of course this isn't required.
More information about the Stackless