I've been adding small things and goodies to stacklesslib for the past few quarters: http://bitbucket.org/krisvale/stacklesslib
The latest addition is util.cancellable, which is a context manager that can be used to create a cancellable context for a tasklet. A tasklet can then call handle.cancel() which will raise a CancelledError out of the context manager. This is in principle similar to how util.timeout works, also a context manager that adds a timeout to a tasklet's context. I've renamed call_async to tasklet_call(), which better explains its purpose. It is now basically a shorter (and simpler) form of stacklesslib.futures.tasklet_executor.submit(...).get_result() K
_______________________________________________ Stackless mailing list [email protected] http://www.stackless.com/mailman/listinfo/stackless
